From 51f7cc3925bf67540042507d609a5678f3196312 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Tue, 21 Oct 2008 23:36:17 +0000 Subject: initialize optional vars --- ext/curl/interface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/curl/interface.c') diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 33a1d26365..f10376bcd7 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -1092,8 +1092,8 @@ PHP_FUNCTION(curl_init) php_curl *ch; CURL *cp; zstr src = NULL_ZSTR; - int src_len; - zend_uchar src_type; + int src_len = 0; + zend_uchar src_type = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|t", &src, &src_len, &src_type) == FAILURE) { RETURN_FALSE; @@ -1783,7 +1783,7 @@ PHP_FUNCTION(curl_getinfo) { zval *zid; php_curl *ch; - long option; + long option = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|l", &zid, &option) == FAILURE) { RETURN_FALSE; -- cgit v1.2.1