From: Tilghman Lesher Date: Mon, 11 Dec 2006 05:37:09 +0000 (+0000) Subject: STRFTIME() does not actually require an argument (issue 8540) X-Git-Tag: 1.4.0-beta4~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fda0dce40632b2f1c3c4a7b457ed974b57b1dea4;p=thirdparty%2Fasterisk.git STRFTIME() does not actually require an argument (issue 8540) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48382 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/funcs/func_strings.c b/funcs/func_strings.c index e9abe50c27..9f911dd719 100644 --- a/funcs/func_strings.c +++ b/funcs/func_strings.c @@ -421,12 +421,6 @@ static int acf_strftime(struct ast_channel *chan, char *cmd, char *parse, buf[0] = '\0'; - if (ast_strlen_zero(parse)) { - ast_log(LOG_ERROR, - "Asterisk function STRFTIME() requires an argument.\n"); - return -1; - } - AST_STANDARD_APP_ARGS(args, parse); ast_get_time_t(args.epoch, &epochi, time(NULL), NULL);