r = 0;
#endif
fputc (c, fp);
-#ifdef USE_SOCKET
- if (bar && pos % 1024)
+ if (bar && !(pos % 1024))
mutt_progress_bar (bar, pos);
-#endif
#ifdef DEBUG
if (DebugLevel >= IMAP_LOG_LTRL)
fputc (c, DebugFile);
}
}
- for (conn = mutt_socket_head (); conn->next; conn = conn->next) {
+ for (conn = mutt_socket_head (); conn && conn->next; conn = conn->next) {
ciss_url_t url;
char urlstr[LONG_STRING];