summaryrefslogtreecommitdiff
path: root/funcs/func_math.c
diff options
context:
space:
mode:
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);