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_userevent.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/app_userevent.c') diff --git a/apps/app_userevent.c b/apps/app_userevent.c index c476c71fe..8d2586779 100644 --- a/apps/app_userevent.c +++ b/apps/app_userevent.c @@ -72,10 +72,7 @@ static int userevent_exec(struct ast_channel *chan, void *data) LOCAL_USER_ADD(u); - if (!(info = ast_strdupa(data))) { - LOCAL_USER_REMOVE(u); - return -1; - } + info = ast_strdupa(data); snprintf(eventname, sizeof(eventname), "UserEvent%s", info); eventbody = strchr(eventname, '|'); -- cgit v1.2.3