diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-10 04:35:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-10 04:35:56 +0000 |
commit | eba60f59cafa2e114de37d6649e28062eb22db58 (patch) | |
tree | e744797e9b73cd28af3f1e8488c2ad4e3b91c32b /bin/ps/keyword.c | |
parent | 30320ff960882d712b18eb93b70c5d743a12938b (diff) |
in findvar() return NULL for keywords not found
Diffstat (limited to 'bin/ps/keyword.c')
-rw-r--r-- | bin/ps/keyword.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c index c7695fca5ae..8ff2ebeb90b 100644 --- a/bin/ps/keyword.c +++ b/bin/ps/keyword.c @@ -1,4 +1,4 @@ -/* $NetBSD: keyword.c,v 1.12 1995/09/29 21:58:59 cgd Exp $ */ +/* $NetBSD: keyword.c,v 1.12.6.1 1996/05/30 21:25:13 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.12.6.1 1996/05/30 21:25:13 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; |