changeset 19275:64dc954cf06c

Fix use of uninitialised variables in __ilu__.cc. * __ilu__.cc (__ilutp__): Initialise variables before using it. Use default values taken MATLAB documentation.
author PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
date Tue, 07 Oct 2014 22:37:39 +0530
parents cac9d4c49522
children ba7e42dea4b2
files libinterp/dldfcn/__ilu__.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/dldfcn/__ilu__.cc	Tue Oct 07 13:46:22 2014 -0700
+++ b/libinterp/dldfcn/__ilu__.cc	Tue Oct 07 22:37:39 2014 +0530
@@ -959,8 +959,8 @@
 
   int nargin = args.length ();
   std::string milu = "";
-  double droptol, thresh;
-  double udiag;
+  double droptol = 0, thresh = 1;
+  double udiag = 0;
 
   if (nargout < 2 || nargout > 3 || nargin < 1 || nargin > 5)
     {