From 3e9eedcdc814b78e2b4857e2f4b5458e2a2ff95f Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 14 Apr 2020 21:37:00 -0400 Subject: Fix bodyParts list building --- export.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'export.c') diff --git a/export.c b/export.c index 644055c..3e1b2dc 100644 --- a/export.c +++ b/export.c @@ -178,7 +178,6 @@ bool exportData(FILE *imap, enum Atom tag, struct List items) { continue; } - data = dataTake(&items.ptr[i + 1]); struct Data *dest = &bodyParts; for (size_t i = 0; i < section.len; ++i) { if (section.ptr[i].type != Number) continue; @@ -190,8 +189,8 @@ bool exportData(FILE *imap, enum Atom tag, struct List items) { listPush(&dest->list, (struct Data) {0}); } dest = &dest->list.ptr[num - 1]; - *dest = data; } + *dest = dataTake(&items.ptr[i + 1]); } if (!uid) { -- cgit 1.4.1