]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/ctdlclient.c
Handle messages that are empty (or which appear empty to MSG4 because they consist...
[citadel.git] / webcit-ng / ctdlclient.c
index a861e2af7ff2cd2445edb50e7cafa4d7f38b48e9..44daa3b55d1e282695f3462cb2d626f15a695152 100644 (file)
@@ -77,7 +77,7 @@ StrBuf *ctdl_readtextmsg(struct ctdlsession *ctdl) {
                return NULL;
        }
 
-       while ((ctdl_readline(ctdl, buf, sizeof(buf)) >= 0) && (strcmp(buf, "000"))) {
+       while (ctdl_readline(ctdl, buf, sizeof(buf)), strcmp(buf, "000")) {
                StrBufAppendPrintf(sj, "%s\n", buf);
        }