mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
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:
parent
1407e409b1
commit
5d614048b4
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue