diff options
author | Sterling Hughes <sterling@php.net> | 2001-06-26 18:20:28 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2001-06-26 18:20:28 +0000 |
commit | 81337038412628e6c6c2850a2c548916b3a29162 (patch) | |
tree | f4ef3caa3bb7dff4f0e720810053721d7d670373 | |
parent | b70eeddc7064eb526be808161445e2b590dce58b (diff) | |
download | php-git-81337038412628e6c6c2850a2c548916b3a29162.tar.gz |
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
-rw-r--r-- | ext/xslt/sablot.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |