diff src/regexp.c @ 35168:4aad918ac113 v9.1.0410

patch 9.1.0410: warning about uninitialized variable Commit: https://github.com/vim/vim/commit/d01e699348dc98109860feb38e5fc24c6dc3d91d Author: John Marriott <basilisk@internode.on.net> Date: Sun May 12 09:01:38 2024 +0200 patch 9.1.0410: warning about uninitialized variable Problem: warning about uninitialized variable (Tony Mechelynck, after 9.1.0409) Solution: initialize variable (John Marriott) closes: #14754 Signed-off-by: John Marriott <basilisk@internode.on.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 12 May 2024 09:15:05 +0200
parents 0b259135fb3a
children cfe900e9ffdd
line wrap: on
line diff
--- 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)