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/engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/regex/engine.c') diff --git a/lib/libc/regex/engine.c b/lib/libc/regex/engine.c index 589bb9d..8fc67ce 100644 --- a/lib/libc/regex/engine.c +++ b/lib/libc/regex/engine.c @@ -157,7 +157,7 @@ matcher(struct re_guts *g, int i; struct match mv; struct match *m = &mv; - const char *dp; + const char *dp = NULL; const sopno gf = g->firststate+1; /* +1 for OEND */ const sopno gl = g->laststate; const char *start; -- cgit v1.1