diff options
author | 1996-08-12 20:20:04 +0000 | |
---|---|---|
committer | 1996-08-12 20:20:04 +0000 | |
commit | 4c978c73817011de1d5f3a6a962df7b7f66f39c1 (patch) | |
tree | afb3610284b30e52a6be8177f3c4270058f038c1 | |
parent | lsof-like support for fstat, whee (diff) | |
download | wireguard-openbsd-4c978c73817011de1d5f3a6a962df7b7f66f39c1.tar.xz wireguard-openbsd-4c978c73817011de1d5f3a6a962df7b7f66f39c1.zip |
fixes core dump if RCSLOCALID not set--oops.
-rw-r--r-- | gnu/usr.bin/rcs/src/rcskeys.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/usr.bin/rcs/src/rcskeys.c b/gnu/usr.bin/rcs/src/rcskeys.c index 704fd77cef8..0e6821370f5 100644 --- a/gnu/usr.bin/rcs/src/rcskeys.c +++ b/gnu/usr.bin/rcs/src/rcskeys.c @@ -29,6 +29,9 @@ Report problems and direct all questions to: /* * $Log: rcskeys.c,v $ + * Revision 1.2 1996/08/12 20:20:04 millert + * fixes core dump if RCSLOCALID not set--oops. + * * Revision 1.1 1996/08/12 04:08:22 millert * rcs 5.7 + OpenBSD changes * @@ -67,7 +70,7 @@ Report problems and direct all questions to: #include "rcsbase.h" -libId(keysId, "$Id: rcskeys.c,v 1.1 1996/08/12 04:08:22 millert Exp $") +libId(keysId, "$Id: rcskeys.c,v 1.2 1996/08/12 20:20:04 millert Exp $") char const *Keyword[] = { @@ -90,7 +93,8 @@ trymatch(string) register char const *p, *s; for (j = sizeof(Keyword)/sizeof(*Keyword); (--j); ) { /* try next keyword */ - p = Keyword[j]; + if ((p = Keyword[j]) == NULL) + continue; s = string; while (*p++ == *s++) { if (!*p) |