summaryrefslogtreecommitdiffstats
path: root/src/util/regexp.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/util/regexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/regexp.c b/src/util/regexp.c
index 0870088..eb45822 100644
--- a/src/util/regexp.c
+++ b/src/util/regexp.c
@@ -125,7 +125,7 @@ int git_regexp_search(const git_regexp *r, const char *string, size_t nmatches,
if ((data = pcre2_match_data_create(nmatches, NULL)) == NULL) {
git_error_set_oom();
- goto out;
+ return -1;
}
if ((error = pcre2_match(*r, (const unsigned char *) string, strlen(string),