[svn-commits] russell: trunk r101739 - /trunk/apps/app_channelredirect.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Feb 1 00:14:31 CST 2008
Author: russell
Date: Fri Feb 1 00:14:29 2008
New Revision: 101739
URL: http://svn.digium.com/view/asterisk?view=rev&rev=101739
Log:
Get rid of a goto where there was no extra cleanup happening at the exit point
Modified:
trunk/apps/app_channelredirect.c
Modified: trunk/apps/app_channelredirect.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_channelredirect.c?view=diff&rev=101739&r1=101738&r2=101739
==============================================================================
--- trunk/apps/app_channelredirect.c (original)
+++ trunk/apps/app_channelredirect.c Fri Feb 1 00:14:29 2008
@@ -63,19 +63,18 @@
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;
}
More information about the svn-commits
mailing list