# HG changeset patch # User nadvornik # Date 1254422434 0 # Node ID 91ec4714b905318849583d357c2d5fdb69fb9358 # Parent 140b73f094c50760f1a729e51eec869fead3ae96 ignored multiple directories specified on commandline IMHO this was inconsistent - specifying one directory had completely different effect than specifying two or more directories. Moreover, it segfaulted. Now only one directory is allowed. diff -r 140b73f094c5 -r 91ec4714b905 src/main.c --- a/src/main.c Thu Oct 01 17:37:51 2009 +0000 +++ b/src/main.c Thu Oct 01 18:40:34 2009 +0000 @@ -132,6 +132,9 @@ static void parse_command_line_add_dir(const gchar *dir, gchar **path, gchar **file, GList **list) { +#if 0 + /* This is broken because file filter is not initialized yet. + */ GList *files; gchar *path_parsed; FileData *dir_fd; @@ -164,6 +167,9 @@ g_free(path_parsed); file_data_unref(dir_fd); +#else + DEBUG_1("multiple directories specified, ignoring: %s", dir); +#endif } static void parse_command_line_process_dir(const gchar *dir, gchar **path, gchar **file,