* fix error handling of shell expansion (candidate fix for issue #23)

This commit is contained in:
Dirk-Jan C. Binnema
2010-07-26 12:12:43 +03:00
parent 7e2b3ff7a0
commit f2cc543baf
2 changed files with 12 additions and 7 deletions

View File

@ -78,9 +78,9 @@ check_index_params (MuConfigOptions *opts)
g_warning ("Error: Invalid option(s) for command\n");
return FALSE;
}
if (!g_path_is_absolute (opts->maildir)) {
g_warning ("Error: maildir path must be absolute\n");
if (!opts->maildir || !g_path_is_absolute (opts->maildir)) {
g_warning ("Error: maildir path is not valid\n");
return FALSE;
}