summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.c b/src/hash.c
index a7c7536..1edb977 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -31,7 +31,7 @@ struct hashtable_node *hashtable_alloc_node(int datasize, void *data)
int size = sizeof(struct hashtable_node) + datasize;
n = calloc(size, 1);
- if (!n)
+ if (n == NULL)
return NULL;
memcpy(n->data, data, datasize);
@@ -55,7 +55,7 @@ hashtable_create(int hashsize, int limit, int datasize,
+ hashsize * sizeof(struct slist_head);
h = (struct hashtable *) calloc(size, 1);
- if (!h) {
+ if (h == NULL) {
errno = ENOMEM;
return NULL;
}