]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
correct fix for the bug i previously introduced - the strings
authorLuigi Rizzo <rizzo@icir.org>
Tue, 24 Oct 2006 06:52:15 +0000 (06:52 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Tue, 24 Oct 2006 06:52:15 +0000 (06:52 +0000)
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

channels/chan_sip.c

index 4dd79a190ec91245de0297b4976c261287594347..18075a24855f6086c22fbd349f58f5075ee9073a 100644 (file)
@@ -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) {