* mu-config: don't set opts->(maildir|linksdir) to NULL if it's invalid; do

checking later
This commit is contained in:
Dirk-Jan C. Binnema 2010-10-09 12:51:20 +03:00
parent 89b65df13b
commit 76815e4416
1 changed files with 11 additions and 3 deletions

View File

@ -95,6 +95,11 @@ set_group_index_defaults (MuConfigOptions *opts)
else
opts->maildir = mu_util_guess_maildir();
/* note, this may be an invalid dir, but we're checking for
* validity of the dir later */
if (!opts->maildir)
opts->maildir = old;
else
g_free (old);
}
@ -142,6 +147,9 @@ set_group_find_defaults (MuConfigOptions *opts)
if (opts->linksdir) {
gchar *old = opts->linksdir;
opts->linksdir = mu_util_dir_expand (opts->linksdir);
if (!opts->linksdir) /* we'll check the dir later */
opts->linksdir = old;
else
g_free(old);
}