From: Wilfried Goesgens Date: Sat, 5 May 2012 11:11:28 +0000 (+0200) Subject: CLEANUP: don't declare vars before code. X-Git-Tag: v8.11~43 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a648fdc96cf64d183b394f9b46822b4104192528 CLEANUP: don't declare vars before code. --- diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 785fdb6aa..ff95e825e 100644 --- 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. */ - Hdr->HR.DontNeedAuth = 1; + int return_value; 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)); - int return_value = ReadHttpSubject(Hdr, NewLine, Buf); + return_value = ReadHttpSubject(Hdr, NewLine, Buf); FreeStrBuf(&NewLine); return return_value; }