fix false positive from scan-build: url->User is NULLed by memset, so puserend wouldn...
[citadel.git] / libcitadel / lib / urlhandling.c
index 4cca8a1f5481362c807853cd1893d93add597fb1..41d38324a30ce2ae30d18d79c5a965c37f2866ae 100644 (file)
@@ -89,6 +89,8 @@ int ParseURL(ParsedURL **Url, StrBuf *UrlStr, unsigned short DefaultPort)
                StrBufPeek(url->URL, pUserEnd, 0, '\0');
                StrBufPeek(url->URL, pCredEnd, 0, '\0');                
        }
+       else
+               pUserEnd = NULL;
        
        pPort = NULL;
        if (*url->Host == '[') {