Skip to content

Commit

Permalink
Merge pull request #3720 from dilyanpalauzov/sieve_test.c_unnecessary…
Browse files Browse the repository at this point in the history
…_assginment

jmap_sieve.c, sieve/test.c:getheader() unnecessary assignment
  • Loading branch information
ksmurchison authored Sep 20, 2024
2 parents c1a4661 + dcf0c95 commit b0b1659
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions imap/jmap_sieve.c
Original file line number Diff line number Diff line change
Expand Up @@ -1330,8 +1330,6 @@ static int getheader(void *v, const char *phead, const char ***body)
{
message_data_t *m = (message_data_t *) v;

*body = NULL;

if (!m->cache_full) fill_cache(m);

*body = spool_getheader(m->cache, phead);
Expand Down
2 changes: 0 additions & 2 deletions sieve/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ static int getheader(void *v, const char *phead, const char ***body)
{
message_data_t *m = (message_data_t *) v;

*body = NULL;

if (!m->cache_full) {
fill_cache(m);
}
Expand Down
2 changes: 0 additions & 2 deletions sieve/test_mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ static int getheader(void *v, const char *phead, const char ***body)
{
message_data_t *m = (message_data_t *) v;

*body = NULL;

if (!m->cache_full) {
fill_cache(m);
}
Expand Down

0 comments on commit b0b1659

Please sign in to comment.