]> granicus.if.org Git - php/commitdiff
Fixed uninitialized zval.type (Yoram)
authorDmitry Stogov <dmitry@zend.com>
Thu, 10 Jan 2013 14:53:10 +0000 (18:53 +0400)
committerDmitry Stogov <dmitry@zend.com>
Thu, 10 Jan 2013 14:53:10 +0000 (18:53 +0400)
win32/registry.c

index 638d85ae52cdce217eb6be600c34988f9906fb0a..685a09d084abd379026a725dcf572eb8c5db855a 100644 (file)
@@ -91,6 +91,7 @@ static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_
                                                INIT_PZVAL(data);
                                                Z_STRVAL_P(data) = zend_strndup(value, value_len-1);
                                                Z_STRLEN_P(data) = value_len-1;
+                                               Z_TYPE_P(data) = IS_STRING;
                                                zend_hash_update(ht, name, name_len+1, &data, sizeof(zval*), NULL);
                                        }
                                }