mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
add safeguard for UpdateIniFromRegistry on NULL arg
This commit is contained in:
parent
207e75b2cd
commit
dd15b8810c
@ -168,6 +168,10 @@ void UpdateIniFromRegistry(char *path TSRMLS_DC)
|
||||
int path_len;
|
||||
HashTable **pht;
|
||||
|
||||
if(!path) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!PW32G(registry_directories)) {
|
||||
PW32G(registry_directories) = (HashTable*)malloc(sizeof(HashTable));
|
||||
zend_hash_init(PW32G(registry_directories), 0, NULL, delete_internal_hashtable, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user