diff options
Diffstat (limited to 'contrib/bmake/hash.c')
-rw-r--r-- | contrib/bmake/hash.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/bmake/hash.c b/contrib/bmake/hash.c index a22e2f2..216f284 100644 --- a/contrib/bmake/hash.c +++ b/contrib/bmake/hash.c @@ -221,6 +221,9 @@ Hash_FindEntry(Hash_Table *t, const char *key) unsigned h; const char *p; + if (t == NULL || t->bucketPtr == NULL) { + return NULL; + } for (h = 0, p = key; *p;) h = (h << 5) - h + *p++; p = key; |