From d87aa779ec076fcfd8c7c549320661f4274880d0 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Sat, 12 Jan 2019 14:19:21 +0000 Subject: [PATCH] libre2c_posix: fixed -Wmaybe-uninitialized GCC warning. --- re2c/libre2c_posix/regexec.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re2c/libre2c_posix/regexec.cc b/re2c/libre2c_posix/regexec.cc index c5ca1cbc..b21b6154 100644 --- a/re2c/libre2c_posix/regexec.cc +++ b/re2c/libre2c_posix/regexec.cc @@ -34,7 +34,7 @@ int regexec(const regex_t *preg, const char *string, size_t nmatch, int result = REG_NOMATCH; regoff_t *regs = new regoff_t[dfa->maxtagver + 1]; size_t i = 0; - const char *p = string, *q; + const char *p = string, *q = p; const dfa_state_t *s, *x = NULL; apply_regops(regs, dfa->tcmd0, 0); -- 2.40.0