Rocco Rutte:
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sat, 29 Oct 2005 07:57:09 +0000 (07:57 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sat, 29 Oct 2005 07:57:09 +0000 (07:57 +0000)
- fix crash in imap trying to write to not opened (I've seen a backtrace of it somewhere...)

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@567 e385b8ad-14ed-0310-8656-cc95a2468c6d

VERSION.svn
imap/imap.c

index 066ce60..97b925a 100644 (file)
@@ -1 +1 @@
-565
+567
index a59eb4b..9a2234f 100644 (file)
@@ -214,7 +214,7 @@ int imap_read_literal (FILE * fp, IMAP_DATA * idata, long bytes, progress_t* bar
     if (bar && !(pos % 1024))
       mutt_progress_bar (bar, pos);
 #ifdef DEBUG
     if (bar && !(pos % 1024))
       mutt_progress_bar (bar, pos);
 #ifdef DEBUG
-    if (DebugLevel >= IMAP_LOG_LTRL)
+    if (DebugFile && DebugLevel >= IMAP_LOG_LTRL)
       fputc (c, DebugFile);
 #endif
   }
       fputc (c, DebugFile);
 #endif
   }