[asterisk-commits] trunk r12688 - /trunk/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Mar 12 14:18:00 MST 2006
Author: russell
Date: Sun Mar 12 15:17:58 2006
New Revision: 12688
URL: http://svn.digium.com/view/asterisk?rev=12688&view=rev
Log:
add some missing braces
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=12688&r1=12687&r2=12688&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun Mar 12 15:17:58 2006
@@ -10217,12 +10217,14 @@
chan1m = ast_channel_alloc(0);
chan2m = ast_channel_alloc(0);
if ((!chan2m) || (!chan1m)) {
- if (chan1m)
+ if (chan1m) {
chan1m->hangupcause = AST_CAUSE_SWITCH_CONGESTION;
ast_hangup(chan1m);
- if (chan2m)
+ }
+ if (chan2m) {
chan2m->hangupcause = AST_CAUSE_SWITCH_CONGESTION;
ast_hangup(chan2m);
+ }
return -1;
}
ast_string_field_build(chan1m, name, "Parking/%s", chan1->name);
More information about the asterisk-commits
mailing list