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

index 37a8ce4020f8f0f191ccbb6300c8d3de2043394a..61e3e40f0295e084deaf31a87936f2edf7cea538 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 1c5845ed7b8d596467f624b8163b858b2086c0b9..07a8fdb0a27983cbd3fb2b5825c914c71200f289 100644 (file)
@@ -2017,8 +2017,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, *__tostring = 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 b7154eb86d3e18968b6a8e42a0230e691d90cf6f..b8edfd43aceb14bf8168a342f2ec6ee7100e0fad 100644 (file)
@@ -1454,7 +1454,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;