Skip to content

Commit 01bab84

Browse files
committed
Rename variable to avoid shadowing
1 parent 1fdbb0a commit 01bab84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/dom/namespace_compat.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ static HashTable *php_dom_libxml_ns_mapper_ensure_prefix_map(php_dom_libxml_ns_m
5454
if (zv == NULL) {
5555
prefix_map = emalloc(sizeof(HashTable));
5656
zend_hash_init(prefix_map, 0, NULL, php_dom_libxml_ns_mapper_prefix_map_element_dtor, false);
57-
zval zv;
58-
ZVAL_ARR(&zv, prefix_map);
59-
zend_hash_add_new(&mapper->uri_to_prefix_map, *uri, &zv);
57+
zval zv_prefix_map;
58+
ZVAL_ARR(&zv_prefix_map, prefix_map);
59+
zend_hash_add_new(&mapper->uri_to_prefix_map, *uri, &zv_prefix_map);
6060
} else {
6161
/* cast to Bucket* only works if this holds, I would prefer a static assert but we're stuck at C99. */
6262
ZEND_ASSERT(XtOffsetOf(Bucket, val) == 0);

0 commit comments

Comments
 (0)