changeset 23770:fdc60d7b777e

maint: merge stable to default.
author Rik <rik@octave.org>
date Wed, 19 Jul 2017 11:42:33 -0700
parents 99a9e19bae41 (current diff) fdce2b73f5ce (diff)
children ed492a5a47fd
files libinterp/corefcn/regexp.cc
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/regexp.cc	Wed Jul 19 13:56:33 2017 -0400
+++ b/libinterp/corefcn/regexp.cc	Wed Jul 19 11:42:33 2017 -0700
@@ -455,9 +455,7 @@
       octave_value_list new_retval;
       new_retval.resize (nargout);
 
-      OCTAVE_LOCAL_BUFFER (int, arg_used, 7);
-      for (int j = 0; j < 7; j++)
-        arg_used[j] = false;
+      OCTAVE_LOCAL_BUFFER_INIT (int, arg_used, 7, false);
 
       for (int j = 2; j < nargin; j++)
         {