]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
typecheck-gcc.h: CURLINFO_PRIVATE does not need a 'char *'
authorDaniel Stenberg <daniel@haxx.se>
Wed, 20 May 2020 14:51:54 +0000 (16:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 20 May 2020 22:05:42 +0000 (00:05 +0200)
Reported-by: Billyzou0741326 on github
Fixes #5432
Closes #5436

include/curl/typecheck-gcc.h

index 7fcf54195aec5f894318663874aa0cc2944cf278..f8cb921f2ec42fe1be3e388edcab35e0aa4ccc64 100644 (file)
@@ -392,8 +392,9 @@ CURLWARNING(_curl_easy_getinfo_err_curl_off_t,
 /* groups of curl_easy_getinfo infos that take the same type of argument */
 
 /* evaluates to true if info expects a pointer to char * argument */
-#define curlcheck_string_info(info)                     \
-  (CURLINFO_STRING < (info) && (info) < CURLINFO_LONG)
+#define curlcheck_string_info(info)                             \
+  (CURLINFO_STRING < (info) && (info) < CURLINFO_LONG &&        \
+   (info) != CURLINFO_PRIVATE)
 
 /* evaluates to true if info expects a pointer to long argument */
 #define curlcheck_long_info(info)                       \