projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix false positive from scan-build: url->User is NULLed by memset, so puserend wouldn...
[citadel.git]
/
libcitadel
/
lib
/
urlhandling.c
diff --git
a/libcitadel/lib/urlhandling.c
b/libcitadel/lib/urlhandling.c
index 4cca8a1f5481362c807853cd1893d93add597fb1..41d38324a30ce2ae30d18d79c5a965c37f2866ae 100644
(file)
--- 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 == '[') {