From 6fa37b884913b9fb17567a2c595b7d9d228db9d1 Mon Sep 17 00:00:00 2001 From: pfg Date: Fri, 20 Feb 2015 21:21:38 +0000 Subject: regex(3): Fix uninitialized pointer values. CID: 405582 (also clang static checker) CID: 1018724 --- lib/libc/regex/regcomp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/regex/regcomp.c') diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c index ae92f6a..2da5066 100644 --- a/lib/libc/regex/regcomp.c +++ b/lib/libc/regex/regcomp.c @@ -1422,8 +1422,8 @@ static void findmust(struct parse *p, struct re_guts *g) { sop *scan; - sop *start; - sop *newstart; + sop *start = NULL; + sop *newstart = NULL; sopno newlen; sop s; char *cp; -- cgit v1.1