make sure p is initialized.
This commit is contained in:
parent
d2bf424ee0
commit
f5804cdea3
@ -35,7 +35,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#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 <ctype.h>
|
||||
@ -1285,6 +1285,7 @@ char *op;
|
||||
p = "WORDZ";
|
||||
break;
|
||||
default:
|
||||
p = NULL;
|
||||
regerror("corrupted opcode");
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user