]> granicus.if.org Git - php/commitdiff
data corruption is for sissy boys
authorSterling Hughes <sterling@php.net>
Tue, 20 May 2003 02:12:03 +0000 (02:12 +0000)
committerSterling Hughes <sterling@php.net>
Tue, 20 May 2003 02:12:03 +0000 (02:12 +0000)
ext/simplexml/simplexml.c

index 08b88462bef3be7d8dd421fd07aee3c4b73d1a88..7159157ccbf1c3684c0c2cfde3a11179e211433b 100644 (file)
@@ -363,7 +363,7 @@ php_sxe_object_new(TSRMLS_D)
 {
        php_sxe_object *intern;
 
-       intern = emalloc(sizeof(php_sxe_object));
+       intern = ecalloc(1, sizeof(php_sxe_object));
        intern->zo.ce = sxe_class_entry;
        intern->zo.in_get = 0;
        intern->zo.in_set = 0;