Skip to content

Commit

Permalink
Fixed uninitialized zval.type (Yoram)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Jan 10, 2013
1 parent dc9f0e7 commit e1410b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions win32/registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit e1410b5

Please sign in to comment.