diff eval.c @ 4092:772ab2a1deaa libavcodec

shut gcc warning, also makes sense for NAN to be returned if the loop was never executed
author ods15
date Sat, 28 Oct 2006 07:03:24 +0000
parents 8e35dfc4ae15
children ca9b4b42ebf9
line wrap: on
line diff
--- a/eval.c	Fri Oct 27 23:37:35 2006 +0000
+++ b/eval.c	Sat Oct 28 07:03:24 2006 +0000
@@ -156,7 +156,7 @@
         case e_gauss: { double d = eval_expr(p, e->param[0]); return exp(-d*d/2)/sqrt(2*M_PI); }
         case e_ld:     return e->value * p->var[clip(eval_expr(p, e->param[0]), 0, VARS-1)];
         case e_while: {
-            double d;
+            double d = NAN;
             while(eval_expr(p, e->param[0]))
                 d=eval_expr(p, e->param[1]);
             return d;