cvs: php-src(PHP_5_2) /ext/standard head.c

From: Date: Mon, 16 Oct 2006 19:27:57 +0000
Subject: cvs: php-src(PHP_5_2) /ext/standard head.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-41131@lists.php.net to get a copy of this message
tony2001 Mon Oct 16 19:27:57 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/standard head.c Log: MFH: initialize optional vars http://cvs.php.net/viewvc.cgi/php-src/ext/standard/head.c?r1=1.84.2.1.2.1&r2=1.84.2.1.2.2&diff_format=u Index: php-src/ext/standard/head.c diff -u php-src/ext/standard/head.c:1.84.2.1.2.1 php-src/ext/standard/head.c:1.84.2.1.2.2 --- php-src/ext/standard/head.c:1.84.2.1.2.1 Thu Aug 10 13:50:56 2006 +++ php-src/ext/standard/head.c Mon Oct 16 19:27:57 2006 @@ -15,7 +15,7 @@ | Author: Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ -/* $Id: head.c,v 1.84.2.1.2.1 2006/08/10 13:50:56 iliaa Exp $ */ +/* $Id: head.c,v 1.84.2.1.2.2 2006/10/16 19:27:57 tony2001 Exp $ */ #include <stdio.h> #include "php.h" @@ -152,7 +152,7 @@ char *name, *value = NULL, *path = NULL, *domain = NULL; long expires = 0; zend_bool secure = 0, httponly = 0; - int name_len, value_len, path_len, domain_len; + int name_len, value_len = 0, path_len = 0, domain_len = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|slssbb", &name, &name_len, &value, &value_len, &expires, &path, @@ -175,7 +175,7 @@ char *name, *value = NULL, *path = NULL, *domain = NULL; long expires = 0; zend_bool secure = 0, httponly = 0; - int name_len, value_len, path_len, domain_len; + int name_len, value_len = 0, path_len = 0, domain_len = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|slssbb", &name, &name_len, &value, &value_len, &expires, &path,

« previous php.cvs (#41131) next »