summaryrefslogtreecommitdiff
path: root/lib/regexec.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-12-16 07:33:54 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2018-12-16 07:34:13 -0800
commita00bedccf07e5c7e51a518a4eb97f0a4c6c65fd5 (patch)
treedaa2458c0ed7f91fdb8071b635a061c252262943 /lib/regexec.c
parent5f5cd2ea2827891ccafdbe8b5305ec240aded8dc (diff)
downloadgnulib-a00bedccf07e5c7e51a518a4eb97f0a4c6c65fd5.tar.gz
autoupdate
Diffstat (limited to 'lib/regexec.c')
-rw-r--r--lib/regexec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/regexec.c b/lib/regexec.c
index c3e6a5b8cb..ecb430d302 100644
--- a/lib/regexec.c
+++ b/lib/regexec.c
@@ -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;