aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-new.c
diff options
context:
space:
mode:
authorGravatar Keith Packard <keithp@keithp.com>2009-11-11 22:33:48 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-11 22:54:01 -0800
commit5d614048b479fe998177668301da4b5c1fd9f56a (patch)
tree1d98f6f413147f589e332ba5524e545f058bcf92 /notmuch-new.c
parent1407e409b17d9e5c7a9660603fb3b975ca854d98 (diff)
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>
Diffstat (limited to 'notmuch-new.c')
-rw-r--r--notmuch-new.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/notmuch-new.c b/notmuch-new.c
index 7603d3d7..70e55cc7 100644
--- a/notmuch-new.c
+++ b/notmuch-new.c
@@ -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;