]> granicus.if.org Git - mutt/commitdiff
Fix a segmentation fault. Patch from Brendan Cully.
authorThomas Roessler <roessler@does-not-exist.org>
Sat, 26 Feb 2000 10:26:59 +0000 (10:26 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sat, 26 Feb 2000 10:26:59 +0000 (10:26 +0000)
imap/browse.c

index 0d9a0c8cafa42c7591aedefc4aed3816f1c40955..5227b7626aa618ea04d01c6c36696d28082db92e 100644 (file)
@@ -190,9 +190,12 @@ int imap_init_browse (char *path, struct browser_state *state)
       if (showparents && add_list_result (conn, seq, buf, state, 1))
           return -1;
 #else
-      dprint (2, (debugfile, "imap_init_browse: adding parent %s\n", mbox));
-      imap_add_folder (idata->delim, mbox, 1, 0, state, 1);
-#endif      
+      if (showparents)
+      {
+       dprint (2, (debugfile, "imap_init_browse: adding parent %s\n", mbox));
+       imap_add_folder (idata->delim, mbox, 1, 0, state, 1);
+      }
+#endif
       /* if our target isn't a folder, we are in our superior */
       if (!state->folder)
       {