diff src/regexp_nfa.c @ 4758:b25a1b2e3175 v7.3.1126

updated for version 7.3.1126 Problem: Compiler warning for unitialized variable. (Tony Mechelynck) Solution: Assign something to the variable.
author Bram Moolenaar <bram@vim.org>
date Wed, 05 Jun 2013 21:23:39 +0200
parents 96f3348f9f11
children 532a9855bd30
line wrap: on
line diff
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -2580,6 +2580,7 @@ post2nfa(postfix, end, nfa_calc_size)
 		nstate += n;
 		break;
 	    }
+	    s = NULL; /* avoid compiler warning */
 	    e1.out = NULL; /* stores list with out1's */
 	    s1 = NULL; /* previous NFA_SPLIT to connect to */
 	    while (n-- > 0)