[evolution-data-server] [Camel] Address compiler warning in header_address_list_encode_append()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] [Camel] Address compiler warning in header_address_list_encode_append()
- Date: Fri, 30 Nov 2018 11:13:25 +0000 (UTC)
commit 5964ae19d73b58d095a5425c6cac8611b81d2c90
Author: Milan Crha <mcrha redhat com>
Date: Fri Nov 30 12:06:39 2018 +0100
[Camel] Address compiler warning in header_address_list_encode_append()
Even the compiler thought the 'text' can be used uninitialized,
it wasn't the case, but initialize it anyway, to make it happy.
Related to https://gitlab.gnome.org/GNOME/evolution-data-server/issues/56
src/camel/camel-mime-utils.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/camel/camel-mime-utils.c b/src/camel/camel-mime-utils.c
index cd5513bcd..a10377e22 100644
--- a/src/camel/camel-mime-utils.c
+++ b/src/camel/camel-mime-utils.c
@@ -5050,9 +5050,8 @@ header_address_list_encode_append (GString *out,
gint encode,
CamelHeaderAddress *a)
{
- gchar *text;
-
while (a) {
+ gchar *text = NULL;
gboolean free_text = FALSE;
switch (a->type) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]