diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2011-09-23 15:19:48 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2011-09-23 15:19:48 +0000 |
commit | 657b661d40e7e68d085dff77bf6cf201a0c75de3 (patch) | |
tree | 1dc588282777ceacb5d083ddf6c3253460d89f57 /ext/curl/interface.c | |
parent | 8cefbca521c944d6fbcda7da7eb1a538d8332f71 (diff) | |
download | php-git-657b661d40e7e68d085dff77bf6cf201a0c75de3.tar.gz |
Add a test and declare the local vars locally
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r-- | ext/curl/interface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 7659d57ada..07b4ad3550 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -2007,10 +2007,6 @@ string_copy: HashTable *postfields; struct HttpPost *first = NULL; struct HttpPost *last = NULL; - char *postval; - char *string_key = NULL; - ulong num_key; - uint string_key_len; postfields = HASH_OF(*zvalue); if (!postfields) { @@ -2023,6 +2019,10 @@ string_copy: zend_hash_get_current_data(postfields, (void **) ¤t) == SUCCESS; zend_hash_move_forward(postfields) ) { + char *postval; + char *string_key = NULL; + uint string_key_len; + ulong num_key; SEPARATE_ZVAL(current); convert_to_string_ex(current); |