Skip to content

Instantly share code, notes, and snippets.

@nikic

nikic/wddx.diff Secret

Created Jun 25, 2017
Embed
What would you like to do?
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c
index 72d2408..f1215a2 100644
--- a/ext/wddx/wddx.c
+++ b/ext/wddx/wddx.c
@@ -814,7 +814,10 @@ static void php_wddx_push_element(void *user_data, const XML_Char *name, const X
} else {
ent.type = ST_BOOLEAN;
SET_STACK_VARNAME;
- ZVAL_FALSE(&ent.data);
+
+ ALLOC_ZVAL(ent.data);
+ INIT_PZVAL(ent.data);
+ ZVAL_FALSE(ent.data);
wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry));
}
} else if (!strcmp(name, EL_NULL)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.