diff options
Diffstat (limited to 'mail/upgrade-mailer.c')
-rw-r--r-- | mail/upgrade-mailer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/upgrade-mailer.c b/mail/upgrade-mailer.c index aa9127378e..8d258ce997 100644 --- a/mail/upgrade-mailer.c +++ b/mail/upgrade-mailer.c @@ -505,7 +505,7 @@ imap_url_upgrade (GHashTable *imap_sources, const char *uri) p = hex_decode (p, strlen (p)); fprintf (stderr, "checking for folder %s on %s... ", p, base_url); - folder = find_folder (si->folders, p, &dir_sep); + folder = si->folders ? find_folder (si->folders, p, &dir_sep) : NULL; if (folder == NULL) { fprintf (stderr, "not found.\n"); folder = p; |