]> granicus.if.org Git - php/commitdiff
fix newly added segfault
authorAntony Dovgal <tony2001@php.net>
Mon, 21 Jan 2008 09:08:12 +0000 (09:08 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 21 Jan 2008 09:08:12 +0000 (09:08 +0000)
ext/calendar/calendar.c

index 55d66f7b84376b1c8458e3a2fd989d5f9d727307..3c3a1e1c984a2de81c5eeca2b1409a74fa80a6a9 100644 (file)
@@ -173,6 +173,7 @@ const zend_function_entry calendar_functions[] = {
 
 static PHP_GINIT_FUNCTION(calendar)
 {
+       memset(calendar_globals, 0, sizeof(*calendar_globals));
        if (zend_set_converter_encoding(&(calendar_globals->iso_8859_8_conv), "iso-8859-8") == FAILURE) {
                php_error(E_CORE_WARNING, "Unable to instatiate iso-8859-8 converter for calendar extension, will be unable to produce hebrew dates in unicode mode");
                calendar_globals = NULL;