Skip to content

Commit

Permalink
build: fix Email debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
flatcap committed Feb 17, 2022
1 parent 87167cb commit f3b9af5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion debug/email.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "address/lib.h"
#include "email/lib.h"
#include "lib.h"
#include "attach/lib.h"
#include "ncrypt/lib.h"

void dump_addr_list(char *buf, size_t buflen, const struct AddressList *al, const char *name)
Expand Down Expand Up @@ -251,7 +252,6 @@ void dump_body(const struct Body *body)
#define ADD_FLAG(F) add_flag(&buf, body->F, #F)
ADD_FLAG(attach_qualifies);
ADD_FLAG(badsig);
ADD_FLAG(collapsed);
ADD_FLAG(deleted);
ADD_FLAG(force_charset);
ADD_FLAG(goodsig);
Expand Down Expand Up @@ -332,6 +332,7 @@ void dump_attach(const struct AttachPtr *att)
#define ADD_FLAG(F) add_flag(&buf, att->F, #F)
ADD_FLAG(unowned);
ADD_FLAG(decrypted);
ADD_FLAG(collapsed);
#undef ADD_FLAG

if (att->fp)
Expand Down
3 changes: 1 addition & 2 deletions email/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ static void parse_parameters(struct ParameterList *pl, const char *s, bool allow
*/
static void parse_content_disposition(const char *s, struct Body *ct)
{
struct ParameterList pl;
TAILQ_INIT(&pl);
struct ParameterList pl = TAILQ_HEAD_INITIALIZER(pl);

if (mutt_istr_startswith(s, "inline"))
ct->disposition = DISP_INLINE;
Expand Down

0 comments on commit f3b9af5

Please sign in to comment.