aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-01 06:14:29 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-01 06:14:29 +0000
commit5b72d203289f101aa3bffbda5c1ff1a3dc6c666b (patch)
tree21faab8801710cd9c9e566c5bedbe3cfacfe37f9 /apps
parentd85ca9b20a66f5b8d546818ca910d44e4a4596d9 (diff)
Get rid of a goto where there was no extra cleanup happening at the exit point
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@101739 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_channelredirect.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/app_channelredirect.c b/apps/app_channelredirect.c
index 325c681ac..cdb18a46f 100644
--- a/apps/app_channelredirect.c
+++ b/apps/app_channelredirect.c
@@ -63,19 +63,18 @@ static int asyncgoto_exec(struct ast_channel *chan, void *data)
if (ast_strlen_zero(args.channel) || ast_strlen_zero(args.label)) {
ast_log(LOG_WARNING, "%s requires an argument (channel,[[context,]exten,]priority)\n", app);
- goto quit;
+ return -1;
}
chan2 = ast_get_channel_by_name_locked(args.channel);
if (!chan2) {
ast_log(LOG_WARNING, "No such channel: %s\n", args.channel);
- goto quit;
+ return -1;
}
res = ast_parseable_goto(chan2, args.label);
ast_channel_unlock(chan2);
-quit:
return res;
}