[RFC PATCH 1/5] cli: remove leftover dir variable
Jani Nikula
jani at nikula.org
Fri Apr 15 12:29:15 PDT 2016
No functional changes.
---
notmuch-new.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/notmuch-new.c b/notmuch-new.c
index 04cb5cac092a..2d975eb5b640 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]);
--
2.1.4
More information about the notmuch
mailing list