From: Keith Packard Date: Thu, 12 Nov 2009 06:33:48 +0000 (-0800) Subject: Initialize count of new files to zero. X-Git-Tag: 0.1~527 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=5d614048b479fe998177668301da4b5c1fd9f56a 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 --- 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;