From 3dcfd1b65bdb439566088dc9faa02d66c2e8e5bc Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 21 Jan 2008 09:08:12 +0000 Subject: [PATCH] fix newly added segfault --- ext/calendar/calendar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/calendar/calendar.c b/ext/calendar/calendar.c index 55d66f7b84..3c3a1e1c98 100644 --- a/ext/calendar/calendar.c +++ b/ext/calendar/calendar.c @@ -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; -- 2.50.1