[evolution/gnome-3-30] A little code clean-up related to the previous commit
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-30] A little code clean-up related to the previous commit
- Date: Wed, 17 Oct 2018 07:37:27 +0000 (UTC)
commit c32151e3c0020e1fe501bf0272e535e3d0d36adf
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]