From 7ad681adc8d5e616165b4d3e6750f2995e782d57 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sat, 21 Jan 2006 08:13:12 +0000 Subject: remove lots of useless checks of the result of ast_strdupa git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8379 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_zapras.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'apps/app_zapras.c') diff --git a/apps/app_zapras.c b/apps/app_zapras.c index 94285cb45..9b69c391f 100644 --- a/apps/app_zapras.c +++ b/apps/app_zapras.c @@ -210,11 +210,6 @@ static int zapras_exec(struct ast_channel *chan, void *data) LOCAL_USER_ADD(u); args = ast_strdupa(data); - if (!args) { - ast_log(LOG_ERROR, "Out of memory\n"); - LOCAL_USER_REMOVE(u); - return -1; - } /* Answer the channel if it's not up */ if (chan->_state != AST_STATE_UP) -- cgit v1.2.3