projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4b004d
)
* first check for done before running into failed buffer reads
author
Wilfried Göesgens
<willi@citadel.org>
Thu, 5 Nov 2009 22:20:23 +0000
(22:20 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Thu, 5 Nov 2009 22:20:23 +0000
(22:20 +0000)
webcit/messages.c
patch
|
blob
|
history
diff --git
a/webcit/messages.c
b/webcit/messages.c
index a3e17dbb56936d2c5d60903e989652cab8fdbb35..682477de34064596615cc229f54e388190425cc2 100644
(file)
--- a/
webcit/messages.c
+++ b/
webcit/messages.c
@@
-63,7
+63,7
@@
int load_message(message_summary *Msg,
/* begin everythingamundo table */
HdrToken = NewStrBuf();
- while (
(StrBuf_ServGetln(Buf)>=0) && !Done
) {
+ while (
!Done && StrBuf_ServGetln(Buf)>=0
) {
if ( (StrLength(Buf)==3) &&
!strcmp(ChrPtr(Buf), "000"))
{