From: Sterling Hughes Date: Tue, 26 Jun 2001 18:20:28 +0000 (+0000) Subject: special offer... 0 out a structure, and remove a crash bug... X-Git-Tag: PRE_TSRM_MERGE_PATCH~332 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81337038412628e6c6c2850a2c548916b3a29162;p=php 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 --- diff --git a/ext/xslt/sablot.c b/ext/xslt/sablot.c index d7c17eff2e..64eea900b8 100644 --- a/ext/xslt/sablot.c +++ b/ext/xslt/sablot.c @@ -173,9 +173,9 @@ PHP_FUNCTION(xslt_create) int error; /* The error container */ /* Allocate the php-sablotron handle */ - handle = emalloc(sizeof(php_xslt)); - handle->handlers = emalloc(sizeof(struct xslt_handlers)); - 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)); XSLT_LOG(handle).path = NULL;