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
/
useredit.c
diff --git
a/webcit/useredit.c
b/webcit/useredit.c
index 51db279ea9f90f3fef122afb11c6bf1b555ec578..c76188b4e1e0930bcb39fc44bd46b4040f14583b 100644
(file)
--- a/
webcit/useredit.c
+++ b/
webcit/useredit.c
@@
-269,8
+269,10
@@
HashList *iterate_load_userlist(StrBuf *Target, WCTemplputParams *TP)
while (!Done) {
len = StrBuf_ServGetln(Buf);
- if ((len == 3) &&
- (strcmp(ChrPtr(Buf), "000")==0)) {
+ if ((len <0) ||
+ ((len == 3) &&
+ strcmp(ChrPtr(Buf), "000")))
+ {
Done = 1;
break;
}