aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2016-04-15 22:29:15 +0300
committerDavid Bremner <david@tethera.net>2016-05-02 07:33:13 -0300
commit73339ade993b7ae14d26808cfd6efcd0da712f3d (patch)
tree95cc33a08e775abfa25fd8659edb2684701daa0b
parent2c1a7321e9054e0bd8a7ebf1b4316baa4a65504d (diff)
cli: remove leftover dir variable
No functional changes.
-rw-r--r--notmuch-new.c3
1 files changed, 0 insertions, 3 deletions
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]);