[evolution] A little code clean-up related to the previous commit



commit 30949eb814282b61abb92c83c9a861c255c999b2
Author: Milan Crha <mcrha redhat com>
Date:   Wed Oct 17 09:36:59 2018 +0200

    A little code clean-up related to the previous commit

 src/addressbook/util/eab-book-util.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/addressbook/util/eab-book-util.c b/src/addressbook/util/eab-book-util.c
index 2f954e05b3..1666f9f719 100644
--- a/src/addressbook/util/eab-book-util.c
+++ b/src/addressbook/util/eab-book-util.c
@@ -532,8 +532,8 @@ eab_parse_qp_email (const gchar *string,
                if (camel_address_unformat (CAMEL_ADDRESS (addr), string) == 1 &&
                    camel_internet_address_get (addr, 0, &const_name, &const_email) &&
                    const_name && *const_name && const_email && *const_email) {
-                       *name = (const_name && *const_name) ? g_strdup (const_name) : NULL;
-                       *email = (const_email && *const_email) ? g_strdup (const_email) : NULL;
+                       *name = g_strdup (const_name);
+                       *email = g_strdup (const_email);
                        res = TRUE;
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]