summaryrefslogtreecommitdiff
path: root/libhashtable/libhashtable.c
diff options
context:
space:
mode:
authorepochqwert <epoch@53flpnlls43fcguy.onion>2015-02-04 03:11:22 -0600
committerepochqwert <epoch@53flpnlls43fcguy.onion>2015-02-04 03:11:22 -0600
commit19c2749eb64171a25ac5a8fb8eab5f73c83bd7f2 (patch)
tree9a75ef53f1b747cde3983491b346b8a1895b164c /libhashtable/libhashtable.c
parentac52abea6b304ee2b7ac4a9718f63fb683adab2b (diff)
downloadsegfault-19c2749eb64171a25ac5a8fb8eab5f73c83bd7f2.tar.gz
segfault-19c2749eb64171a25ac5a8fb8eab5f73c83bd7f2.zip
I don't remember.
Diffstat (limited to 'libhashtable/libhashtable.c')
-rw-r--r--libhashtable/libhashtable.c1
1 files changed, 1 insertions, 0 deletions
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;