fix ZVAL_STRING usage in options_init
authorMichael Wallner <mike@php.net>
Wed, 27 Apr 2016 10:11:15 +0000 (12:11 +0200)
committerMichael Wallner <mike@php.net>
Wed, 27 Apr 2016 10:11:15 +0000 (12:11 +0200)
src/php_http_client_curl.c

index cc62c1528e4944639b6ca4c78e87febb9fc3cea5..5b6a6283be4c106eb48f8004e210215fa80633f1 100644 (file)
@@ -1522,7 +1522,7 @@ static void php_http_curle_options_init(php_http_options_t *registry)
                        opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN;
                        opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_BASEDIR;
 #ifdef PHP_HTTP_CURL_CAPATH
-                       ZVAL_STRING(&opt->defval, PHP_HTTP_CURL_CAPATH, 0);
+                       ZVAL_PSTRING(&opt->defval, PHP_HTTP_CURL_CAPATH);
 #endif
                }
                if ((opt = php_http_option_register(registry, ZEND_STRL("random_file"), CURLOPT_RANDOM_FILE, IS_STRING))) {