From: Thomas Roessler Date: Sat, 26 Feb 2000 10:26:59 +0000 (+0000) Subject: Fix a segmentation fault. Patch from Brendan Cully. X-Git-Tag: mutt-1-1-6-rel~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6190598456fed80713f2a9684a094c4882e05440;p=mutt Fix a segmentation fault. Patch from Brendan Cully. --- diff --git a/imap/browse.c b/imap/browse.c index 0d9a0c8c..5227b762 100644 --- a/imap/browse.c +++ b/imap/browse.c @@ -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) {