changeset 7955:645ced9fa838

regex-match.cc (regex_match::init): initialize err to 0
author John W. Eaton <jwe@octave.org>
date Mon, 21 Jul 2008 13:10:48 -0400
parents 3ffc34caec65
children 0da8455b31c1
files liboctave/ChangeLog liboctave/regex-match.cc
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Mon Jul 21 11:47:30 2008 -0400
+++ b/liboctave/ChangeLog	Mon Jul 21 13:10:48 2008 -0400
@@ -1,3 +1,7 @@
+2008-07-21  John W. Eaton  <jwe@octave.org>
+
+	* regex-match.cc (regex_match::init): Initialize err to 0.
+
 2008-07-19  John W. Eaton  <jwe@octave.org>
 
 	* oct-mutex.h (class octave_base_mutex): New class.
--- a/liboctave/regex-match.cc	Mon Jul 21 11:47:30 2008 -0400
+++ b/liboctave/regex-match.cc	Mon Jul 21 13:10:48 2008 -0400
@@ -87,7 +87,7 @@
 {
 #ifdef HAVE_REGEX
   int npat = pat.length ();
-  int err;
+  int err = 0;
   int i;
 
   compiled = new regex_t [npat];