diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2017-06-05 14:56:13 +0200 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2017-06-05 14:56:26 +0200 | 
| commit | b8085f493a7066fe6990c15e8e30d8b20c736062 (patch) | |
| tree | 4a62804301ee93cab41f01327ef5f629d5d4e96f | |
| parent | cccac4fb2b20d6ed87da7978408c3ecacc464fe4 (diff) | |
typecheck-gcc: allow CURLOPT_STDERR to be NULL too
| -rw-r--r-- | include/curl/typecheck-gcc.h | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/include/curl/typecheck-gcc.h b/include/curl/typecheck-gcc.h index 0a08175f7..10b5de2ab 100644 --- a/include/curl/typecheck-gcc.h +++ b/include/curl/typecheck-gcc.h @@ -470,8 +470,9 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_socket,  #endif  /* evaluates to true if expr is of type FILE* */ -#define _curl_is_FILE(expr)                                                   \ -  (__builtin_types_compatible_p(__typeof__(expr), FILE *)) +#define _curl_is_FILE(expr)                                             \ +  (_curl_is_NULL(expr) ||                                              \ +   (__builtin_types_compatible_p(__typeof__(expr), FILE *)))  /* evaluates to true if expr can be passed as POST data (void* or char*) */  #define _curl_is_postfields(expr)                                             \  | 
