projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
if StrBuf_ServGetln() is called in a loop, its return value has to be checked for...
[citadel.git]
/
webcit
/
siteconfig.c
diff --git
a/webcit/siteconfig.c
b/webcit/siteconfig.c
index f0e8b4937080c4e7258438b5c97cf5f9bb1d07f1..f893b4833e9437fa037ab3e337a5304ec2035e49 100644
(file)
--- a/
webcit/siteconfig.c
+++ b/
webcit/siteconfig.c
@@
-231,9
+231,9
@@
void load_siteconfig(void)
}
i = 0;
while (len = StrBuf_ServGetln(Buf),
+ (len >= 0) &&
(i <= (sizeof(ServerConfig) / sizeof(CfgMapping))) &&
- ((len != 3) || (strcmp(ChrPtr(Buf), "000")!= 0))
- )
+ ((len != 3) || strcmp(ChrPtr(Buf), "000")))
{
Put(Cfg,
ServerConfig[i].Key,