projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91e141e
)
fix false positive from scan-build: url->User is NULLed by memset, so puserend wouldn...
author
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 19 Jul 2012 10:56:35 +0000
(12:56 +0200)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 19 Jul 2012 10:56:35 +0000
(12:56 +0200)
libcitadel/lib/urlhandling.c
patch
|
blob
|
history
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 == '[') {