summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/curl/typecheck-gcc.h5
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) \