remove useless checks of the result of ast_strdupa
[asterisk/asterisk.git] / funcs / func_md5.c
index 552e876..57c3975 100644 (file)
@@ -68,10 +68,6 @@ static char *builtin_function_checkmd5(struct ast_channel *chan, char *cmd, char
        }
 
        parse = ast_strdupa(data);
-       if (!parse) {
-               ast_log(LOG_ERROR, "Out of memory!\n");
-               return NULL;
-       }
        
        AST_STANDARD_APP_ARGS(args, parse);