]> Savannah Git Hosting - gnulib.git/commitdiff
autoupdate
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 16 Dec 2018 15:33:54 +0000 (07:33 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 16 Dec 2018 15:34:13 +0000 (07:34 -0800)
lib/regexec.c

index c3e6a5b8cb2ae13f6ff9263e46d39b9dad7a264a..ecb430d3023909e1252ded983f3c03e9e26226b7 100644 (file)
@@ -2783,8 +2783,11 @@ get_subexp (re_match_context_t *mctx, Idx bkref_node, Idx bkref_str_idx)
            return REG_ESPACE;
          err = get_subexp_sub (mctx, sub_top, sub_last, bkref_node,
                                bkref_str_idx);
+         buf = (const char *) re_string_get_buffer (&mctx->input);
          if (err == REG_NOMATCH)
            continue;
+         if (__glibc_unlikely (err != REG_NOERROR))
+           return err;
        }
     }
   return REG_NOERROR;