summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-06-04 21:13:48 +0000
committerOlle Johansson <oej@edvina.net>2006-06-04 21:13:48 +0000
commit02bc3637da572eef774e7ce7d7d78b7a6de8972a (patch)
tree0908f84cfb798e9304a9389d566e31cf7f2bb636
parentd520d238f1edbbc567d58342a19352d82c7c0a1f (diff)
Code simplification
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index b366ea549..975ad73d7 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)) {