summaryrefslogtreecommitdiff
path: root/funcs/func_md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'funcs/func_md5.c')
-rw-r--r--funcs/func_md5.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/funcs/func_md5.c b/funcs/func_md5.c
index 552e876ed..467799d0c 100644
--- a/funcs/func_md5.c
+++ b/funcs/func_md5.c
@@ -67,11 +67,8 @@ static char *builtin_function_checkmd5(struct ast_channel *chan, char *cmd, char
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);