multi.c: fix segfault

This commit is contained in:
Yang Tse 2011-10-21 16:37:13 +02:00
parent 9d0d1ada05
commit a4758c3276
1 changed files with 2 additions and 2 deletions

View 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 {