summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2018-11-30 12:06:39 +0100
committerMilan Crha <mcrha@redhat.com>2018-11-30 12:06:39 +0100
commit5964ae19d73b58d095a5425c6cac8611b81d2c90 (patch)
treed79b3dd0ca2046ec73ebbf873092185d2c8f214f
parentff6ae6b89798ee6d651535cc238db889bea7d2e4 (diff)
downloadevolution-data-server-5964ae19d73b58d095a5425c6cac8611b81d2c90.tar.gz
[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
-rw-r--r--src/camel/camel-mime-utils.c3
1 files changed, 1 insertions, 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) {