summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_nonapi.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2005-05-06 10:09:42 +0000
committerAndrey Hristov <andrey@php.net>2005-05-06 10:09:42 +0000
commit60c0c8e95c961271cf3db3ada24c86d4dcb92845 (patch)
tree6b4a2573da92edce90aa05fbced65a8cf0ca62e2 /ext/mysqli/mysqli_nonapi.c
parent3ae10919c4a311381d8c47debddfc2de4d7f2941 (diff)
downloadphp-git-60c0c8e95c961271cf3db3ada24c86d4dcb92845.tar.gz
initialize values because the call to zend_parse_parameters may not do it
Diffstat (limited to 'ext/mysqli/mysqli_nonapi.c')
-rw-r--r--ext/mysqli/mysqli_nonapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c
index a133b5c118..31d4c13723 100644
--- a/ext/mysqli/mysqli_nonapi.c
+++ b/ext/mysqli/mysqli_nonapi.c
@@ -37,7 +37,7 @@ PHP_FUNCTION(mysqli_connect)
MYSQLI_RESOURCE *mysqli_resource;
zval *object = getThis();
char *hostname = NULL, *username=NULL, *passwd=NULL, *dbname=NULL, *socket=NULL;
- unsigned int hostname_len, username_len, passwd_len, dbname_len, socket_len;
+ unsigned int hostname_len = 0, username_len = 0, passwd_len = 0, dbname_len = 0, socket_len = 0;
long port=0;
if (getThis() && !ZEND_NUM_ARGS()) {