From 501c4872a00787c94ec9595e3de377774101850d Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 27 Apr 2016 12:11:15 +0200 Subject: [PATCH] fix ZVAL_STRING usage in options_init --- src/php_http_client_curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index cc62c15..5b6a628 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -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))) { -- 2.30.2