talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 7ac7d0b4818ff675d05b5f5df877bb652fcd7faa
parent d0dbd94b829a2c8317738ecacc1bbabf61daae94
Author: Ricardo Mones <ricardo@mones.org>
Date:   Fri, 10 Nov 2023 18:33:09 +0100

Add parentheses to fix warning

mimeview.c:1946:39: warning: suggest parentheses around ‘&&’ within ‘||’

Diffstat:
Msrc/mimeview.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mimeview.c b/src/mimeview.c @@ -1943,14 +1943,14 @@ static void mimeview_save_all(MimeView *mimeview, gboolean attachments_only) } while (partinfo != NULL) { - if (!attachments_only && + if ((!attachments_only && (partinfo->type != MIMETYPE_MESSAGE && partinfo->type != MIMETYPE_MULTIPART && (partinfo->disposition != DISPOSITIONTYPE_INLINE || - get_real_part_name(partinfo) != NULL)) || - attachments_only && + get_real_part_name(partinfo) != NULL))) || + (attachments_only && (partinfo->disposition == DISPOSITIONTYPE_ATTACHMENT && - get_real_part_name(partinfo) != NULL)) { + get_real_part_name(partinfo) != NULL))) { gchar *filename = mimeview_get_filename_for_part( partinfo, dirname, number++);