]> granicus.if.org Git - php/commitdiff
init variables
authorAntony Dovgal <tony2001@php.net>
Mon, 6 Feb 2006 20:37:11 +0000 (20:37 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 6 Feb 2006 20:37:11 +0000 (20:37 +0000)
TSRM/tsrm_virtual_cwd.c
Zend/zend_API.c
Zend/zend_hash.c

index ebc490500d3acc130ce9417c53ec0e34f2bb56f4..4ab511f313f9f2eda784e82eae925c26363c2c1b 100644 (file)
@@ -380,9 +380,9 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
        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) 
index 82223309ed0205c650d2f98c9971555f6069bd86..b777f5130f41c48bdd09f14dae2a0c566354f329 100644 (file)
@@ -1510,8 +1510,8 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entr
        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;
index d2ec5b6592c327b08892e5679e817b102f404dbc..b993687db6328e0763b399f4e8c72c9a3ac34f40 100644 (file)
@@ -1261,7 +1261,7 @@ ZEND_API int zend_hash_sort(HashTable *ht, sort_func_t sort_func,
 
 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;