in findvar(), return after warning about unknown keyword so we don't
deref. a null pointer.
This commit is contained in:
parent
4c4c6e7b5f
commit
7514e04296
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: keyword.c,v 1.12 1995/09/29 21:58:59 cgd Exp $ */
|
||||
/* $NetBSD: keyword.c,v 1.13 1996/05/30 21:16:32 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993, 1994
|
||||
@ -37,7 +37,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)keyword.c 8.5 (Berkeley) 4/2/94";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: keyword.c,v 1.12 1995/09/29 21:58:59 cgd Exp $";
|
||||
static char rcsid[] = "$NetBSD: keyword.c,v 1.13 1996/05/30 21:16:32 cgd Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -354,6 +354,7 @@ findvar(p)
|
||||
if (!v) {
|
||||
warnx("%s: keyword not found", p);
|
||||
eval = 1;
|
||||
return ((VAR *)NULL);
|
||||
}
|
||||
if (hp)
|
||||
v->header = hp;
|
||||
|
Loading…
Reference in New Issue
Block a user