From: Daniel Stenberg Date: Mon, 5 Jun 2017 12:56:13 +0000 (+0200) Subject: typecheck-gcc: allow CURLOPT_STDERR to be NULL too X-Git-Tag: curl-7_54_1~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8085f493a7066fe6990c15e8e30d8b20c736062;p=thirdparty%2Fcurl.git typecheck-gcc: allow CURLOPT_STDERR to be NULL too --- diff --git a/include/curl/typecheck-gcc.h b/include/curl/typecheck-gcc.h index 0a08175f74..10b5de2ab1 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) \