aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_math.c
diff options
context:
space:
mode:
Diffstat (limited to 'funcs/func_math.c')
-rw-r--r--funcs/func_math.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/funcs/func_math.c b/funcs/func_math.c
index fca53dd07..d086fe304 100644
--- a/funcs/func_math.c
+++ b/funcs/func_math.c
@@ -89,6 +89,10 @@ static char *builtin_function_math(struct ast_channel *chan, char *cmd, char *da
}
parse = ast_strdupa(data);
+ if(!parse) {
+ ast_log(LOG_ERROR, "Out of memory!\n");
+ return NULL;
+ }
AST_STANDARD_APP_ARGS(args, parse);