From a648fdc96cf64d183b394f9b46822b4104192528 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sat, 5 May 2012 13:11:28 +0200 Subject: [PATCH] CLEANUP: don't declare vars before code. --- webcit/context_loop.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.30.2