diff options
author | Yang Tse <yangsita@gmail.com> | 2011-10-21 16:37:13 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-10-21 16:52:16 +0200 |
commit | a4758c3276e55f160b3a02489b504972fcee0f10 (patch) | |
tree | adaa7d84d18d26e61ae94b2e22431bbdfbe00e15 | |
parent | 9d0d1ada05ecea912c84e38976b565f83225b47d (diff) |
multi.c: fix segfault
-rw-r--r-- | lib/multi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/multi.c b/lib/multi.c index 5e4ce5080..e53d387f0 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -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 { |