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 --- funcs/func_math.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'funcs/func_math.c') diff --git a/funcs/func_math.c b/funcs/func_math.c index d086fe304..ebd7a707b 100644 --- a/funcs/func_math.c +++ b/funcs/func_math.c @@ -88,11 +88,8 @@ static char *builtin_function_math(struct ast_channel *chan, char *cmd, char *da return NULL; } - parse = ast_strdupa(data); - if(!parse) { - ast_log(LOG_ERROR, "Out of memory!\n"); + if (!(parse = ast_strdupa(data))) return NULL; - } AST_STANDARD_APP_ARGS(args, parse); -- cgit v1.2.3