com php-src: Fixed uninitialized zval.type (Yoram): win32/registry.c
| From: | Dmitry Stogov | Date: | Thu, 10 Jan 2013 14:53:10 +0000 |
| Subject: | com php-src: Fixed uninitialized zval.type (Yoram): win32/registry.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70917@lists.php.net to get a copy of this message | ||
Commit: e1410b5a70543856de3978603b41fbf2ca5d330c
Author: Dmitry Stogov <dmitry@zend.com> Thu, 10 Jan 2013 18:53:10 +0400
Parents: dc9f0e70b78b5ea998f319c63fb181eb4f5bda41
Branches: PHP-5.3 PHP-5.4 PHP-5..5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e1410b5a70543856de3978603b41fbf2ca5d330c
Log:
Fixed uninitialized zval.type (Yoram)
Changed paths:
M win32/registry.c
Diff:
diff --git a/win32/registry.c b/win32/registry.c
index 638d85a..685a09d 100644
--- a/win32/registry.c
+++ b/win32/registry.c
@@ -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);
}
}