[asterisk-commits] trunk r12740 - /trunk/say.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Mar 13 02:02:57 MST 2006


Author: oej
Date: Mon Mar 13 03:02:55 2006
New Revision: 12740

URL: http://svn.digium.com/view/asterisk?rev=12740&view=rev
Log:
Issue 6710: saydate crash. Fix by Luigi Rizzo. Thanks!

Modified:
    trunk/say.c

Modified: trunk/say.c
URL: http://svn.digium.com/view/asterisk/trunk/say.c?rev=12740&r1=12739&r2=12740&view=diff
==============================================================================
--- trunk/say.c (original)
+++ trunk/say.c Mon Mar 13 03:02:55 2006
@@ -2949,6 +2949,10 @@
 
 int ast_say_date_with_format(struct ast_channel *chan, time_t time, const char *ints, const char *lang, const char *format, const char *timezone)
 {
+	/* If no format is given, use default english format */
+	if (format == NULL)
+		format = "ABdY 'digits/at' IMp";
+
 	if (!strcasecmp(lang, "en") ) {	/* English syntax */
 		return(ast_say_date_with_format_en(chan, time, ints, lang, format, timezone));
 	} else if (!strcasecmp(lang, "da") ) {	/* Danish syntax */



More information about the asterisk-commits mailing list