cvs: php4 /ext/xslt sablot.c
| From: | Sterling Hughes | Date: | Tue, 26 Jun 2001 18:20:28 +0000 |
| Subject: | cvs: php4 /ext/xslt sablot.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6028@lists.php.net to get a copy of this message | ||
sterling Tue Jun 26 20:20:28 2001 EDT
Modified files:
/php4/ext/xslt sablot.c
Log:
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
Index: php4/ext/xslt/sablot.c
diff -u php4/ext/xslt/sablot.c:1.11 php4/ext/xslt/sablot.c:1.12
--- php4/ext/xslt/sablot.c:1.11 Mon Jun 11 16:53:30 2001
+++ php4/ext/xslt/sablot.c Tue Jun 26 20:20:27 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sablot.c,v 1.11 2001/06/11 14:53:30 dbeu Exp $ */
+/* $Id: sablot.c,v 1.12 2001/06/26 18:20:27 sterling Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -173,9 +173,9 @@
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;