summaryrefslogtreecommitdiffstats
path: root/src/regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regexp.c')
-rw-r--r--src/regexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regexp.c b/src/regexp.c
index c80f29af56..d431932191 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -642,7 +642,7 @@ skip_regexp_ex(
{
if (dirc == '?' && newp != NULL && p[1] == '?')
{
- size_t startplen;
+ size_t startplen = 0;
// change "\?" to "?", make a copy first.
if (*newp == NULL)