projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1407e40
)
Initialize count of new files to zero.
author
Keith Packard
<keithp@keithp.com>
Thu, 12 Nov 2009 06:33:48 +0000
(22:33 -0800)
committer
Carl Worth
<cworth@cworth.org>
Thu, 12 Nov 2009 06:54:01 +0000
(22:54 -0800)
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>
notmuch-new.c
patch
|
blob
|
history
diff --git
a/notmuch-new.c
b/notmuch-new.c
index 7603d3d7b57f0a61236cef9f76afe5e8bd98740e..70e55cc728b6831989854897babc8183440eaac8 100644
(file)
--- 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;