From 19c2749eb64171a25ac5a8fb8eab5f73c83bd7f2 Mon Sep 17 00:00:00 2001 From: epochqwert Date: Wed, 4 Feb 2015 03:11:22 -0600 Subject: I don't remember. --- libhashtable/libhashtable.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libhashtable/libhashtable.c') diff --git a/libhashtable/libhashtable.c b/libhashtable/libhashtable.c index e304a68..38b4ad3 100644 --- a/libhashtable/libhashtable.c +++ b/libhashtable/libhashtable.c @@ -88,6 +88,7 @@ void ht_freevalues(struct hashtable *ht) { //this seems too complicated. int ht_setkey(struct hashtable *ht,char *key,void *value) { + if(!key) key="(null)"; unsigned short h=hash(key); struct entry *tmp; int i; -- cgit v1.2.3