projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bda110d
)
* don't alloc urlbuf if we don't need it
author
Wilfried Göesgens
<willi@citadel.org>
Fri, 22 May 2009 09:20:53 +0000
(09:20 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Fri, 22 May 2009 09:20:53 +0000
(09:20 +0000)
webcit/paramhandling.c
patch
|
blob
|
history
diff --git
a/webcit/paramhandling.c
b/webcit/paramhandling.c
index bb7367fdbd3b6dd449bdf84548ee81c705c792b2..a1a80be227bd7d81445b8083b962b44018bad304 100644
(file)
--- a/
webcit/paramhandling.c
+++ b/
webcit/paramhandling.c
@@
-395,12
+395,11
@@
StrEscPuts(WC->UrlFragment1);
void tmplput_url_part(StrBuf *Target, WCTemplputParams *TP)
{
StrBuf *Name = NULL;
- StrBuf *UrlBuf;
+ StrBuf *UrlBuf
= NULL
;
wcsession *WCC = WC;
if (WCC != NULL) {
if (TP->Tokens->Params[0]->lvalue == 0) {
- UrlBuf = NewStrBuf();
if (WCC->Hdr->Handler != NULL)
UrlBuf = Name = WCC->Hdr->Handler->Name;
}