[evolution/gnome-3-26] Bug 720387 - Always set error on failure of mail_autoconfig_initable_init()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-26] Bug 720387 - Always set error on failure of mail_autoconfig_initable_init()
- Date: Thu, 1 Feb 2018 13:29:23 +0000 (UTC)
commit e6c3fc424c92c05efb8a6ca717d29f7d9308c9bb
Author: Milan Crha <mcrha redhat com>
Date: Thu Feb 1 14:28:21 2018 +0100
Bug 720387 - Always set error on failure of mail_autoconfig_initable_init()
src/mail/e-mail-autoconfig.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/mail/e-mail-autoconfig.c b/src/mail/e-mail-autoconfig.c
index 4640a44..7fdd136 100644
--- a/src/mail/e-mail-autoconfig.c
+++ b/src/mail/e-mail-autoconfig.c
@@ -848,7 +848,9 @@ mail_autoconfig_initable_init (GInitable *initable,
cp++;
}
- if (local_error != NULL)
+ if (!success && !local_error)
+ g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, _("Unknown error"));
+ else if (local_error)
g_propagate_error (error, local_error);
g_free (name_server);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]