talons

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

commit 7087f6b973663ac3c8e64ceaaf2c7b0e7769976c
parent fbf501626163c494b563339b2f69b9bb48621517
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Wed, 18 Apr 2018 18:19:28 +0200

Fix two missed return values in compose_write_to_file() from commit e9f610a4f.

Thanks to wwp for finding the issue!

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

diff --git a/src/compose.c b/src/compose.c @@ -5865,7 +5865,7 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action, gbool g_node_append(mimemsg->node, mimempart->node); if (compose_add_attachments(compose, mimempart) < 0) - return -1; + return COMPOSE_QUEUE_ERROR_NO_MSG; } else g_node_append(mimemsg->node, mimetext->node); @@ -5892,7 +5892,7 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action, gbool compose->account, from_addr)) { g_free(from_name); g_free(from_addr); - return -2; + return COMPOSE_QUEUE_ERROR_SIGNING_FAILED; } g_free(from_name); g_free(from_addr);