Permalink
Browse files

Fixed uninitialized zval.type (Yoram)

  • Loading branch information...
1 parent dc9f0e7 commit e1410b5a70543856de3978603b41fbf2ca5d330c @dstogov dstogov committed Jan 10, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 win32/registry.c
View
@@ -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);
}
}

0 comments on commit e1410b5

Please sign in to comment.