multi.c: fix segfault
authorYang Tse <yangsita@gmail.com>
Fri, 21 Oct 2011 14:37:13 +0000 (16:37 +0200)
committerYang Tse <yangsita@gmail.com>
Fri, 21 Oct 2011 14:52:16 +0000 (16:52 +0200)
lib/multi.c

index 5e4ce50..e53d387 100644 (file)
@@ -125,9 +125,9 @@ struct Curl_one_easy {
 #define CURL_MULTI_HANDLE 0x000bab1e
 
 #define GOOD_MULTI_HANDLE(x) \
-  ((x)&&(((struct Curl_multi *)(x))->type == CURL_MULTI_HANDLE))
+  ((x) && (((struct Curl_multi *)(x))->type == CURL_MULTI_HANDLE))
 #define GOOD_EASY_HANDLE(x) \
(((struct SessionHandle *)(x))->magic == CURLEASY_MAGIC_NUMBER)
 ((x) && (((struct SessionHandle *)(x))->magic == CURLEASY_MAGIC_NUMBER))
 
 /* This is the struct known as CURLM on the outside */
 struct Curl_multi {