Skip to content

Commit 8133703

Browse files
author
Sterling Hughes
committed
special offer... 0 out a structure, and remove a crash bug...
# Offer only available between 6/30/2001 - 7/14/2001, Exclusively for # cvs committers
1 parent b70eedd commit 8133703

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/xslt/sablot.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ PHP_FUNCTION(xslt_create)
173173
int error; /* The error container */
174174

175175
/* 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));
176+
handle = ecalloc(1, sizeof(php_xslt));
177+
handle->handlers = ecalloc(1, sizeof(struct xslt_handlers));
178+
handle->err = ecalloc(1, sizeof(struct xslt_error));
179179

180180
XSLT_LOG(handle).path = NULL;
181181

0 commit comments

Comments
 (0)