[asterisk-commits] trunk r32138 - /trunk/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Jun 4 14:13:49 MST 2006
Author: oej
Date: Sun Jun 4 16:13:48 2006
New Revision: 32138
URL: http://svn.digium.com/view/asterisk?rev=32138&view=rev
Log:
Code simplification
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=32138&r1=32137&r2=32138&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun Jun 4 16:13:48 2006
@@ -13473,14 +13473,9 @@
ext = tmp;
} else {
ext = strchr(tmp, '/');
- if (ext) {
+ if (ext)
*ext++ = '\0';
- host = tmp;
- }
- else {
- host = tmp;
- ext = NULL;
- }
+ host = tmp;
}
if (create_addr(p, host)) {
More information about the asterisk-commits
mailing list