diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-01-18 10:36:25 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-01-18 10:36:25 +0000 |
commit | 7bfe853af3258341a0cdc2cba15156c63a84c174 (patch) | |
tree | 7ed19d304a36bddee4779fa443e20cfee24d17c1 /lib/hash.c | |
parent | cbaecca8e948cda6c603a715ac1e984784d77855 (diff) |
I wish I could type. Anyway, this proved it is a good habit to put the NULL
on the left side of comparisons...
Diffstat (limited to 'lib/hash.c')
-rw-r--r-- | lib/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |