From d99b677f3501944b7aaf82375ef62a88e5fa3933 Mon Sep 17 00:00:00 2001 From: russell Date: Wed, 10 May 2006 13:22:15 +0000 Subject: remove almost all of the checks of the result from ast_strdupa() or alloca(). As it turns out, all of these checks were useless, because alloca will never return NULL. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26451 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_disa.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/app_disa.c') diff --git a/apps/app_disa.c b/apps/app_disa.c index d7c3a5872..b49fe47a6 100644 --- a/apps/app_disa.c +++ b/apps/app_disa.c @@ -158,10 +158,7 @@ static int disa_exec(struct ast_channel *chan, void *data) ast_log(LOG_DEBUG, "Digittimeout: %d\n", digittimeout); ast_log(LOG_DEBUG, "Responsetimeout: %d\n", firstdigittimeout); - if (!(tmp = ast_strdupa(data))) { - LOCAL_USER_REMOVE(u); - return -1; - } + tmp = ast_strdupa(data); AST_STANDARD_APP_ARGS(args, tmp); -- cgit v1.2.3