diff libinterp/corefcn/regexp.cc @ 26479:54ad1294ed70 stable

regexp.cc: Fix static analyzer detected issues (bug #55347). * regexp.cc (octregexp): Declare variable arg_used as type bool, not int.
author Rik <rik@octave.org>
date Sun, 06 Jan 2019 21:51:05 -0800
parents 00f796120a6d
children f8d380d04b01
line wrap: on
line diff
--- a/libinterp/corefcn/regexp.cc	Sun Jan 06 21:32:21 2019 -0800
+++ b/libinterp/corefcn/regexp.cc	Sun Jan 06 21:51:05 2019 -0800
@@ -479,7 +479,7 @@
       octave_value_list new_retval;
       new_retval.resize (nargout);
 
-      int arg_used[7] {};
+      bool arg_used[7] {};
 
       for (int j = 2; j < nargin; j++)
         {