tony2001                Mon Oct 16 19:27:00 2006 UTC

  Modified files:              
    /php-src/ext/standard       head.c 
  Log:
  initialize optional variables
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/head.c?r1=1.89&r2=1.90&diff_format=u
Index: php-src/ext/standard/head.c
diff -u php-src/ext/standard/head.c:1.89 php-src/ext/standard/head.c:1.90
--- php-src/ext/standard/head.c:1.89    Thu Aug 10 13:56:54 2006
+++ php-src/ext/standard/head.c Mon Oct 16 19:27:00 2006
@@ -15,7 +15,7 @@
    | Author: Rasmus Lerdorf <[EMAIL PROTECTED]>                        |
    +----------------------------------------------------------------------+
  */
-/* $Id: head.c,v 1.89 2006/08/10 13:56:54 iliaa Exp $ */
+/* $Id: head.c,v 1.90 2006/10/16 19:27:00 tony2001 Exp $ */
 
 #include <stdio.h>
 #include "php.h"
@@ -151,7 +151,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,
@@ -174,7 +174,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,

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to