From: Michael Wallner Date: Wed, 23 Feb 2005 11:34:57 +0000 (+0000) Subject: * un-hack curl info name duplication X-Git-Tag: RELEASE_0_6_0~20 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=801cda5381354db215b247f2eaf0b384a64b957d;p=m6w6%2Fext-http * un-hack curl info name duplication --- diff --git a/http_curl_api.c b/http_curl_api.c index ed68c31..7c5c8b3 100644 --- a/http_curl_api.c +++ b/http_curl_api.c @@ -352,7 +352,7 @@ static inline void _http_curl_setopts(CURL *ch, const char *url, HashTable *opti /* {{{ static inline char *http_curl_getinfoname(CURLINFO) */ static inline char *_http_curl_getinfoname(CURLINFO i TSRMLS_DC) { -#define CASE(I) case CURLINFO_ ##I : { static char I[] = #I; return pretty_key(I, sizeof(#I)-1, 0, 0); } +#define CASE(I) case CURLINFO_ ##I : { return pretty_key(http_curl_copystr(#I), sizeof(#I)-1, 0, 0); } switch (i) { /* CURLINFO_EFFECTIVE_URL = CURLINFO_STRING +1, */