projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d2fbe9d
)
CLEANUP: don't declare vars before code.
author
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 5 May 2012 11:11:28 +0000
(13:11 +0200)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 5 May 2012 11:11:28 +0000
(13:11 +0200)
webcit/context_loop.c
patch
|
blob
|
history
diff --git
a/webcit/context_loop.c
b/webcit/context_loop.c
index 785fdb6aa4996b504d3709c9df80b99a9f8fba10..ff95e825ebe5ad428d604b610d8621ae6a6a327f 100644
(file)
--- a/
webcit/context_loop.c
+++ b/
webcit/context_loop.c
@@
-335,11
+335,12
@@
int ReadHttpSubject(ParsedHttpHdrs *Hdr, StrBuf *Line, StrBuf *Buf)
}
else {
/* If this is a "flat" request for the root, display the configured landing page. */
}
else {
/* If this is a "flat" request for the root, display the configured landing page. */
-
Hdr->HR.DontNeedAuth = 1
;
+
int return_value
;
StrBuf *NewLine = NewStrBuf();
StrBuf *NewLine = NewStrBuf();
+ Hdr->HR.DontNeedAuth = 1;
StrBufAppendPrintf(NewLine, "GET /landing?go=%s HTTP/1.0", ChrPtr(Buf));
syslog(LOG_DEBUG, "Replacing with: %s", ChrPtr(NewLine));
StrBufAppendPrintf(NewLine, "GET /landing?go=%s HTTP/1.0", ChrPtr(Buf));
syslog(LOG_DEBUG, "Replacing with: %s", ChrPtr(NewLine));
-
int
return_value = ReadHttpSubject(Hdr, NewLine, Buf);
+ return_value = ReadHttpSubject(Hdr, NewLine, Buf);
FreeStrBuf(&NewLine);
return return_value;
}
FreeStrBuf(&NewLine);
return return_value;
}