fix warning
authorMichael Wallner <mike@php.net>
Fri, 22 May 2015 07:27:00 +0000 (09:27 +0200)
committerMichael Wallner <mike@php.net>
Fri, 22 May 2015 07:27:00 +0000 (09:27 +0200)
php_http_url.c

index 9b56f955e1abad248ec01c40111def2753c4eed8..c296bbcf100fee1b4436fa1f2121a5079ea7dbb5 100644 (file)
@@ -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);