aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_math.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-21 20:57:06 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-21 20:57:06 +0000
commit252fb982f41866ec19b9b619c10c349e02ebee7e (patch)
treefca85df85af6ced3fcc170993dda57b4be818254 /funcs/func_math.c
parenta36aa51b3c5fb8e66678409c6522359766b1c691 (diff)
on this pass, only remove duplicate log messages
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8403 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_math.c')
-rw-r--r--funcs/func_math.c5
1 files changed, 1 insertions, 4 deletions
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);