Initialize count of new files to zero.

Leaving this variable uninitialized caused notmuch to display a random
number while counting files for the new database.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2009-11-11 22:33:48 -08:00 committed by Carl Worth
parent 1407e409b1
commit 5d614048b4

View file

@ -410,6 +410,7 @@ notmuch_new_command (void *ctx,
if (new_database) {
int count;
count = 0;
count_files (db_path, &count);
add_files_state.ignore_read_only_directories = FALSE;
add_files_state.total_files = count;