I wish I could type. Anyway, this proved it is a good habit to put the NULL
authorDaniel Stenberg <daniel@haxx.se>
Fri, 18 Jan 2002 10:36:25 +0000 (10:36 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 18 Jan 2002 10:36:25 +0000 (10:36 +0000)
on the left side of comparisons...

lib/hash.c

index 15f2029..b6f9d76 100644 (file)
@@ -102,7 +102,7 @@ curl_hash_alloc(int slots, curl_hash_dtor dtor)
   curl_hash *h;
 
   h = (curl_hash *)malloc(sizeof(curl_hash));
-  if(NULL = h)
+  if(NULL == h)
     return NULL;
 
   curl_hash_init(h, slots, dtor);