We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b70eedd commit 8133703Copy full SHA for 8133703
ext/xslt/sablot.c
@@ -173,9 +173,9 @@ PHP_FUNCTION(xslt_create)
173
int error; /* The error container */
174
175
/* Allocate the php-sablotron handle */
176
- handle = emalloc(sizeof(php_xslt));
177
- handle->handlers = emalloc(sizeof(struct xslt_handlers));
178
- handle->err = emalloc(sizeof(struct xslt_error));
+ handle = ecalloc(1, sizeof(php_xslt));
+ handle->handlers = ecalloc(1, sizeof(struct xslt_handlers));
+ handle->err = ecalloc(1, sizeof(struct xslt_error));
179
180
XSLT_LOG(handle).path = NULL;
181
0 commit comments