mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 19:20:35 +00:00
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
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user