X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=libcitadel%2Flib%2Furlhandling.c;h=41d38324a30ce2ae30d18d79c5a965c37f2866ae;hb=99cd325a9d7e8a7a67258ffc82b6d658a91bd58f;hp=4cca8a1f5481362c807853cd1893d93add597fb1;hpb=91e141e324dbec9e28fe4cb856d5975143392d2c;p=citadel.git diff --git a/libcitadel/lib/urlhandling.c b/libcitadel/lib/urlhandling.c index 4cca8a1f5..41d38324a 100644 --- a/libcitadel/lib/urlhandling.c +++ b/libcitadel/lib/urlhandling.c @@ -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 == '[') {