mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
issue #5648
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7011 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -160,7 +160,7 @@ static char *acf_strftime(struct ast_channel *chan, char *cmd, char *data, char
|
||||
epoch = strsep(&format, "|");
|
||||
timezone = strsep(&format, "|");
|
||||
|
||||
if (!epoch || ast_strlen_zero(epoch) || !sscanf(epoch, "%ld", &epochi)) {
|
||||
if (ast_strlen_zero(epoch) || !sscanf(epoch, "%ld", &epochi)) {
|
||||
struct timeval tv = ast_tvnow();
|
||||
epochi = tv.tv_sec;
|
||||
}
|
||||
@@ -193,7 +193,7 @@ static char *function_eval(struct ast_channel *chan, char *cmd, char *data, char
|
||||
{
|
||||
memset(buf, 0, len);
|
||||
|
||||
if (!data || ast_strlen_zero(data)) {
|
||||
if (ast_strlen_zero(data)) {
|
||||
ast_log(LOG_WARNING, "EVAL requires an argument: EVAL(<string>)\n");
|
||||
return buf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user