changeset 283:0e44de38d675

Trivial fix for some compilers trying to be smart and noting a path whereby something uninitialized might be returned in yinv().
author mas01cr
date Thu, 03 Jul 2008 08:50:57 +0000
parents f6b80b9f6afe
children cacad987d785
files sample.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sample.cpp	Wed Jul 02 17:14:10 2008 +0000
+++ b/sample.cpp	Thu Jul 03 08:50:57 2008 +0000
@@ -16,7 +16,8 @@
   double ay = yfun(a);
   double by = yfun(b);
 
-  double c, cy;
+  double c = 0;
+  double cy;
 
   /* FIXME: simple binary search; there's probably some clever solver
      in gsl somewhere which is less sucky. */