diff options
| author | Piotr Trojanek <piotr.trojanek@gmail.com> | 2017-06-16 23:50:24 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-06-25 09:38:22 -0300 |
| commit | 410b96080ceec15ced70e684115f604380c5b4f6 (patch) | |
| tree | 3e4dde76caeb08d8d5e60d41a5b129cfd98a6ebd | |
| parent | e9d73f90a6d3945b7ebda9d95ec719e0ba0c9756 (diff) | |
remove ineffective assignments
Detected by cppcheck.
| -rw-r--r-- | notmuch-new.c | 2 | ||||
| -rw-r--r-- | tag-util.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/notmuch-new.c b/notmuch-new.c index e2822e23..4d40f3d0 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -850,7 +850,7 @@ _remove_directory (void *ctx, const char *path, add_files_state_t *add_files_state) { - notmuch_status_t status = NOTMUCH_STATUS_SUCCESS; + notmuch_status_t status; notmuch_directory_t *directory; notmuch_filenames_t *files, *subdirs; char *absolute; @@ -218,7 +218,6 @@ makes_changes (notmuch_message_t *message, notmuch_bool_t changes = FALSE; /* First, do we delete an existing tag? */ - changes = FALSE; for (tags = notmuch_message_get_tags (message); ! changes && notmuch_tags_valid (tags); notmuch_tags_move_to_next (tags)) { |
