summaryrefslogtreecommitdiff
path: root/ext/curl/interface.c
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2008-10-21 23:36:17 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2008-10-21 23:36:17 +0000
commit51f7cc3925bf67540042507d609a5678f3196312 (patch)
tree628f306bd97a2b1c58a2c2d07cb155bc44da8345 /ext/curl/interface.c
parent5ef7ecafc1e912bda9010c727cfe5c712f9eefb8 (diff)
downloadphp-git-51f7cc3925bf67540042507d609a5678f3196312.tar.gz
initialize optional vars
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r--ext/curl/interface.c6
1 files changed, 3 insertions, 3 deletions
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;