summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-10-24 06:52:15 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-10-24 06:52:15 +0000
commit0d59b76dd244c0829c202617d41425f904a8df82 (patch)
tree8b0734d13593e812616b24cea16d482c142fd0cc /channels
parent61056be5abbb7a8c3679f3a4604eda642c2be97e (diff)
correct fix for the bug i previously introduced - the strings
are meant to be always initialized, independently from their content. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 4dd79a190..18075a248 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2254,9 +2254,9 @@ static int parse_uri(char *uri, char *scheme,
int error = 0;
/* init field as required */
- if (pass && *pass)
+ if (pass)
*pass = "";
- if (port && *port)
+ if (port)
*port = "";
name = strsep(&uri, ";"); /* remove options */
if (scheme) {