From: Olle Johansson Date: Sun, 4 Jun 2006 21:13:48 +0000 (+0000) Subject: Code simplification X-Git-Tag: 1.4.0-beta1~1063 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02bc3637da572eef774e7ce7d7d78b7a6de8972a;p=thirdparty%2Fasterisk.git Code simplification git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32138 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index b366ea5493..975ad73d73 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -13473,14 +13473,9 @@ static struct ast_channel *sip_request_call(const char *type, int format, void * 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)) {