Skip to content

Commit 10a1f90

Browse files
committedJan 10, 2011
- local redeclaration
1 parent ab4ce55 commit 10a1f90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎win32/registry.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_
9595
char *index;
9696
uint index_len;
9797
ulong num;
98-
zval **data;
98+
zval **tmpdata;
9999

100100
for (zend_hash_internal_pointer_reset_ex(parent_ht, &pos);
101-
zend_hash_get_current_data_ex(parent_ht, (void**)&data, &pos) == SUCCESS &&
101+
zend_hash_get_current_data_ex(parent_ht, (void**)&tmpdata, &pos) == SUCCESS &&
102102
zend_hash_get_current_key_ex(parent_ht, &index, &index_len, &num, 0, &pos) == HASH_KEY_IS_STRING;
103103
zend_hash_move_forward_ex(parent_ht, &pos)) {
104-
if (zend_hash_add(ht, index, index_len, data, sizeof(zval*), NULL) == SUCCESS) {
105-
Z_ADDREF_PP(data);
104+
if (zend_hash_add(ht, index, index_len, tmpdata, sizeof(zval*), NULL) == SUCCESS) {
105+
Z_ADDREF_PP(tmpdata);
106106
}
107107
}
108108
}

0 commit comments

Comments
 (0)
Failed to load comments.