From: Michael Wallner Date: Fri, 22 May 2015 07:27:00 +0000 (+0200) Subject: fix warning X-Git-Tag: RELEASE_2_5_0~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=aee4dea903f457635993b5cb460d01a0cd71dd03;p=m6w6%2Fext-http fix warning --- diff --git a/php_http_url.c b/php_http_url.c index 9b56f95..c296bbc 100644 --- a/php_http_url.c +++ b/php_http_url.c @@ -554,8 +554,8 @@ HashTable *php_http_url_to_struct(const php_http_url_t *url, zval *strct TSRMLS_ ZEND_RESULT_CODE php_http_url_encode_hash(HashTable *hash, const char *pre_encoded_str, size_t pre_encoded_len, char **encoded_str, size_t *encoded_len TSRMLS_DC) { - const char *arg_sep_str; - size_t arg_sep_len; + const char *arg_sep_str = "&"; + size_t arg_sep_len = 1; php_http_buffer_t *qstr = php_http_buffer_new(); php_http_url_argsep(&arg_sep_str, &arg_sep_len TSRMLS_CC);