X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-new.c;h=2d975eb5b640f4561864372f64612f0e7d4fe94b;hb=1aa6f90a10794951365626830e8ebf29cf3736c8;hp=04cb5cac092a9cf08def0af2645f89a5d0394c5f;hpb=6e6bafed0f88f914da34ec55087418756e485e52;p=notmuch diff --git a/notmuch-new.c b/notmuch-new.c index 04cb5cac..2d975eb5 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -351,7 +351,6 @@ add_files (notmuch_database_t *notmuch, const char *path, add_files_state_t *state) { - DIR *dir = NULL; struct dirent *entry = NULL; char *next = NULL; time_t fs_mtime, db_mtime; @@ -655,8 +654,6 @@ add_files (notmuch_database_t *notmuch, DONE: if (next) talloc_free (next); - if (dir) - closedir (dir); if (fs_entries) { for (i = 0; i < num_fs_entries; i++) free (fs_entries[i]);