aboutsummaryrefslogtreecommitdiffstats
path: root/say.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-13 09:02:55 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-13 09:02:55 +0000
commite711f9dc20516065e76377df6ca1ec54b58a9ad9 (patch)
tree48ff64c7d339370b059aaa01504b1abafdc7c8e2 /say.c
parentc964b7ebf61cd3fc330ccb86cd596be947f7a539 (diff)
Issue 6710: saydate crash. Fix by Luigi Rizzo. Thanks!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12740 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'say.c')
-rw-r--r--say.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/say.c b/say.c
index ff881c787..4f8f380f8 100644
--- a/say.c
+++ b/say.c
@@ -2949,6 +2949,10 @@ int ast_say_date_pt(struct ast_channel *chan, time_t t, const char *ints, const
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 */