From 4414f453939519e89787a7dfd18c3390e2162775 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sat, 21 Jan 2006 20:57:06 +0000 Subject: on this pass, only remove duplicate log messages git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8403 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_sayunixtime.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/app_sayunixtime.c') diff --git a/apps/app_sayunixtime.c b/apps/app_sayunixtime.c index cde4e65c9..c6db4f140 100644 --- a/apps/app_sayunixtime.c +++ b/apps/app_sayunixtime.c @@ -93,8 +93,7 @@ static int sayunixtime_exec(struct ast_channel *chan, void *data) if (data) { s = data; - s = ast_strdupa(s); - if (s) { + if ((s = ast_strdupa(s))) { timec = strsep(&s,"|"); if ((timec) && (*timec != '\0')) { long timein; @@ -110,8 +109,6 @@ static int sayunixtime_exec(struct ast_channel *chan, void *data) format = s; } } - } else { - ast_log(LOG_ERROR, "Out of memory error\n"); } } -- cgit v1.2.3