diff liboctave/regex-match.cc @ 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 d3a7882fa0b3
children 25bc2d31e1bf
line wrap: on
line diff
--- a/liboctave/regex-match.cc
+++ b/liboctave/regex-match.cc
@@ -87,7 +87,7 @@
 {
 #ifdef HAVE_REGEX
   int npat = pat.length ();
-  int err;
+  int err = 0;
   int i;
 
   compiled = new regex_t [npat];