summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-08-12 20:20:05 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-08-12 20:20:05 +0000
commitbdc1b2d7c445ea8597500605e3067bbc6e92ca83 (patch)
tree20bc6cc54b37c5c17f0c7560597671ae1bfbff38
parent10ee12e5aba134f3475c901826660a4f84f3a669 (diff)
fixes core dump if RCSLOCALID not set--oops.
-rw-r--r--gnu/usr.bin/rcs/src/rcskeys.c8
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)