From: Daniel Stenberg Date: Fri, 18 Jan 2002 10:36:25 +0000 (+0000) Subject: I wish I could type. Anyway, this proved it is a good habit to put the NULL X-Git-Tag: curl-7_9_3~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7bfe853af3258341a0cdc2cba15156c63a84c174;p=curl I wish I could type. Anyway, this proved it is a good habit to put the NULL on the left side of comparisons... --- diff --git a/lib/hash.c b/lib/hash.c index 15f2029c8..b6f9d76c0 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -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);