]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-new.c
Initialize count of new files to zero.
[notmuch] / notmuch-new.c
index 7603d3d7b57f0a61236cef9f76afe5e8bd98740e..70e55cc728b6831989854897babc8183440eaac8 100644 (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;