diff options
author | Brendan Cully <brendan@kublai.com> | 2005-08-07 22:16:25 +0000 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2005-08-07 22:16:25 +0000 |
commit | 54e9286b57274fcfae4ff271cbe23e5e5ca5d2f9 (patch) | |
tree | ebc1e791c5654d886f450250d582fcd009daa50c /browser.c | |
parent | b5ca4e7eff88071fdc3ff30272f2d43239a2f7fd (diff) |
Avoid a segfault attempting to browse an invalid IMAP URL.
Diffstat (limited to 'browser.c')
-rw-r--r-- | browser.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -561,8 +561,8 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num { init_state (&state, NULL); state.imap_browse = 1; - imap_browse (f, &state); - strfcpy (LastDir, state.folder, sizeof (LastDir)); + if (!imap_browse (f, &state)) + strfcpy (LastDir, state.folder, sizeof (LastDir)); } else { |