summaryrefslogtreecommitdiff
path: root/ext/standard/iptc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/iptc.c')
-rw-r--r--ext/standard/iptc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/standard/iptc.c b/ext/standard/iptc.c
index 78843059f4..6c8224d1ed 100644
--- a/ext/standard/iptc.c
+++ b/ext/standard/iptc.c
@@ -368,8 +368,7 @@ PHP_FUNCTION(iptcparse)
if (_php3_hash_find(return_value->value.ht,key,strlen(key) + 1,(void **) &element) == FAILURE) {
values = emalloc(sizeof(pval));
- values->EA = 0;
- values->refcount = 1;
+ INIT_PZVAL(values);
if (array_init(values) == FAILURE) {
php3_error(E_ERROR, "Unable to initialize array");
RETURN_FALSE;