Skip to content
Snippets Groups Projects
Commit 0d59b76d authored by Luigi Rizzo's avatar Luigi Rizzo
Browse files

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
parent 61056be5
Branches
Tags
No related merge requests found
...@@ -2254,9 +2254,9 @@ static int parse_uri(char *uri, char *scheme, ...@@ -2254,9 +2254,9 @@ static int parse_uri(char *uri, char *scheme,
int error = 0; int error = 0;
   
/* init field as required */ /* init field as required */
if (pass && *pass) if (pass)
*pass = ""; *pass = "";
if (port && *port) if (port)
*port = ""; *port = "";
name = strsep(&uri, ";"); /* remove options */ name = strsep(&uri, ";"); /* remove options */
if (scheme) { if (scheme) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment