From: Wilfried Göesgens Date: Mon, 7 Sep 2009 21:06:51 +0000 (+0000) Subject: * here we need to look for StrBufNOTNULL too. X-Git-Tag: v7.86~872 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=95a0eeac3837826192949ff1da08ea9c010ce6d4 * here we need to look for StrBufNOTNULL too. --- diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 62ee82a03..9c1dde0af 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -319,7 +319,7 @@ int ReadHttpSubject(ParsedHttpHdrs *Hdr, StrBuf *Line, StrBuf *Buf) break; } while (1); /* remove the handlername from the URL */ - if (Pos != NULL) { + if ((Pos != NULL) && (Pos != StrBufNOTNULL)){ StrBufCutLeft(Hdr->HR.ReqLine, Pos - ChrPtr(Hdr->HR.ReqLine)); }