From f5804cdea3f2c6d3140492b3a360cf479ad21281 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 8 Apr 2006 22:05:36 +0000 Subject: [PATCH] make sure p is initialized. --- lib/libcompat/regexp/regexp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libcompat/regexp/regexp.c b/lib/libcompat/regexp/regexp.c index a4146871ce28..cad0dedbde6d 100644 --- a/lib/libcompat/regexp/regexp.c +++ b/lib/libcompat/regexp/regexp.c @@ -35,7 +35,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: regexp.c,v 1.16 2006/04/08 21:33:09 christos Exp $"); +__RCSID("$NetBSD: regexp.c,v 1.17 2006/04/08 22:05:36 christos Exp $"); #endif /* LIBC_SCCS and not lint */ #include @@ -1285,6 +1285,7 @@ char *op; p = "WORDZ"; break; default: + p = NULL; regerror("corrupted opcode"); break; }