projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e60b2fe
)
* here we need to look for StrBufNOTNULL too.
author
Wilfried Göesgens
<willi@citadel.org>
Mon, 7 Sep 2009 21:06:51 +0000
(21:06 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Mon, 7 Sep 2009 21:06:51 +0000
(21:06 +0000)
webcit/context_loop.c
patch
|
blob
|
history
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));
}