cvs: TSRM(PHP_5_1) / tsrm_virtual_cwd.c ZendEngine2 zend_API.c zend_hash.c
| From: | Antony Dovgal | Date: | Mon, 06 Feb 2006 20:37:11 +0000 |
| Subject: | cvs: TSRM(PHP_5_1) / tsrm_virtual_cwd.c ZendEngine2 zend_API.c zend_hash.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4572@lists.php.net to get a copy of this message | ||
tony2001 Mon Feb 6 20:37:11 2006 UTC
Modified files: (Branch: PHP_5_1)
/ZendEngine2 zend_API.c zend_hash.c
/TSRM tsrm_virtual_cwd.c
Log:
init variables
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_API.c?r1=1.296.2.18&r2=1.296.2.19&diff_format=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.296.2.18 ZendEngine2/zend_API.c:1.296.2.19
--- ZendEngine2/zend_API.c:1.296.2.18 Wed Jan 25 22:03:18 2006
+++ ZendEngine2/zend_API.c Mon Feb 6 20:37:11 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.c,v 1.296.2.18 2006/01/25 22:03:18 helly Exp $ */
+/* $Id: zend_API.c,v 1.296.2.19 2006/02/06 20:37:11 tony2001 Exp $ */
#include "zend.h"
#include "zend_execute.h"
@@ -1510,8 +1510,8 @@
zend_function *ctor = NULL, *dtor = NULL, *clone = NULL, *__get = NULL, *__set = NULL, *__unset =
NULL, *__isset = NULL, *__call = NULL;
char *lowercase_name;
int fname_len;
- char *lc_class_name;
- int class_name_len;
+ char *lc_class_name = NULL;
+ int class_name_len = 0;
if (type==MODULE_PERSISTENT) {
error_type = E_CORE_WARNING;
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_hash.c?r1=1.121.2.2&r2=1.121.2.3&diff_format=u
Index: ZendEngine2/zend_hash.c
diff -u ZendEngine2/zend_hash.c:1.121.2.2 ZendEngine2/zend_hash.c:1.121.2.3
--- ZendEngine2/zend_hash.c:1.121.2.2 Wed Feb 1 01:01:05 2006
+++ ZendEngine2/zend_hash.c Mon Feb 6 20:37:11 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_hash.c,v 1.121.2.2 2006/02/01 01:01:05 zeev Exp $ */
+/* $Id: zend_hash.c,v 1.121.2.3 2006/02/06 20:37:11 tony2001 Exp $ */
#include "zend.h"
@@ -1261,7 +1261,7 @@
ZEND_API int zend_hash_compare(HashTable *ht1, HashTable *ht2, compare_func_t compar, zend_bool
ordered TSRMLS_DC)
{
- Bucket *p1, *p2;
+ Bucket *p1, *p2 = NULL;
int result;
void *pData2;
http://cvs.php.net/viewcvs.cgi/TSRM/tsrm_virtual_cwd.c?r1=1.74.2.6&r2=1.74.2.7&diff_format=u
Index: TSRM/tsrm_virtual_cwd.c
diff -u TSRM/tsrm_virtual_cwd.c:1.74.2.6 TSRM/tsrm_virtual_cwd.c:1.74.2.7
--- TSRM/tsrm_virtual_cwd.c:1.74.2.6 Mon Jan 16 09:12:22 2006
+++ TSRM/tsrm_virtual_cwd.c Mon Feb 6 20:37:11 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tsrm_virtual_cwd.c,v 1.74.2.6 2006/01/16 09:12:22 dmitry Exp $ */
+/* $Id: tsrm_virtual_cwd.c,v 1.74.2.7 2006/02/06 20:37:11 tony2001 Exp $ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -380,9 +380,9 @@
char *new_path;
#endif
char orig_path[MAXPATHLEN];
- int orig_path_len;
+ int orig_path_len = 0;
realpath_cache_bucket *bucket;
- time_t t;
+ time_t t = 0;
TSRMLS_FETCH();
if (path_length == 0)