projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* here we need to look for StrBufNOTNULL too.
[citadel.git]
/
webcit
/
context_loop.c
diff --git
a/webcit/context_loop.c
b/webcit/context_loop.c
index 62ee82a03cc03038fb9de87193e1bbb10ea4f69f..9c1dde0afe7f123332576b7f0aabbdf755661ccf 100644
(file)
--- 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));
}