]> granicus.if.org Git - php/commitdiff
special offer... 0 out a structure, and remove a crash bug...
authorSterling Hughes <sterling@php.net>
Tue, 26 Jun 2001 18:20:28 +0000 (18:20 +0000)
committerSterling Hughes <sterling@php.net>
Tue, 26 Jun 2001 18:20:28 +0000 (18:20 +0000)
# Offer only available between 6/30/2001 - 7/14/2001, Exclusively for
# cvs committers

ext/xslt/sablot.c

index d7c17eff2ed2d4030425881f71daf73725f949db..64eea900b8432d6b5c312fd7f909719b11a5873a 100644 (file)
@@ -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;