diff options
| author | Felipe Pena <felipe@php.net> | 2008-11-22 14:41:21 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2008-11-22 14:41:21 +0000 |
| commit | 5af16d68f5dcd8f690cc3715ce98dd7cc249a393 (patch) | |
| tree | c73035cf7a276d5c726255a042da1af353c1ec26 | |
| parent | 010c3eb63737fb15e376fe1b169ea0e20139f2a3 (diff) | |
| download | php-git-5af16d68f5dcd8f690cc3715ce98dd7cc249a393.tar.gz | |
- Fixed segfault [only in this branch, because add_next_* are macro]
| -rw-r--r-- | ext/curl/interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index d904b36d92..66d58a795d 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -1161,7 +1161,8 @@ PHP_FUNCTION(curl_version) array_init(protocol_list); while (*p != NULL) { - add_next_index_ascii_string(protocol_list, *p++, 1); + add_next_index_ascii_string(protocol_list, *p, 1); + *p++; } CAAZ("protocols", protocol_list); } |
