From 7bfe853af3258341a0cdc2cba15156c63a84c174 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 18 Jan 2002 10:36:25 +0000 Subject: I wish I could type. Anyway, this proved it is a good habit to put the NULL on the left side of comparisons... --- lib/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); -- cgit v1.2.3