projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
* fixed a LOAD of mem-leaks
[m6w6/ext-http]
/
http_api.c
diff --git
a/http_api.c
b/http_api.c
index a5b898d8f6931ce91d6a33ff269686b85d4e910f..b16da00430999c182e177d656de9da84a0de02f9 100644
(file)
--- a/
http_api.c
+++ b/
http_api.c
@@
-563,7
+563,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)
{
/* {{{ static inline char *http_curl_getinfoname(CURLINFO) */
static inline char *_http_curl_getinfoname(CURLINFO i TSRMLS_DC)
{
-#define CASE(I) case CURLINFO_ ##I :
return pretty_key(estrdup( #I ), strlen(#I), 0, 0)
+#define CASE(I) case CURLINFO_ ##I :
{ static char I[] = #I; return pretty_key(I, sizeof(#I)-1, 0, 0); }
switch (i)
{
/* CURLINFO_EFFECTIVE_URL = CURLINFO_STRING +1, */
switch (i)
{
/* CURLINFO_EFFECTIVE_URL = CURLINFO_STRING +1, */