* add some extra error checking for the right command

This commit is contained in:
Dirk-Jan C. Binnema
2010-08-29 16:39:27 +03:00
parent d5329d3696
commit a7a08dde7f
6 changed files with 34 additions and 8 deletions

View File

@ -173,6 +173,8 @@ mu_cmd_cleanup (MuConfigOptions *opts)
MuIndexStats stats;
g_return_val_if_fail (opts, FALSE);
g_return_val_if_fail (mu_cmd_equals (opts, "cleanup"), FALSE);
if (!check_index_params (opts))
return FALSE;
@ -225,6 +227,7 @@ mu_cmd_index (MuConfigOptions *opts)
MuIndexStats stats;
g_return_val_if_fail (opts, FALSE);
g_return_val_if_fail (mu_cmd_equals (opts, "find"), FALSE);
if (!check_index_params (opts))
return FALSE;