aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-16 11:12:45 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-16 11:12:45 +0800
commit9cb166341e0231ba1e547f90838c512867f51141 (patch)
tree8747e5751224c7dfaec11b84d9ab5bd208f8dd6c
parent5ccf92420b1b396104eb1bc8361510a44beb255a (diff)
downloadgsoc2013-evolution-9cb166341e0231ba1e547f90838c512867f51141.tar.gz
gsoc2013-evolution-9cb166341e0231ba1e547f90838c512867f51141.tar.zst
gsoc2013-evolution-9cb166341e0231ba1e547f90838c512867f51141.zip
Fix a potential uninitialized variable use in em-composer-utils.c.
Caught by the Clang Static Analyzer.
-rw-r--r--mail/em-composer-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 6dfd7cb05c..c90097f80a 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1944,7 +1944,7 @@ static void
format_sender (GString *str, const gchar *attr, CamelMimeMessage *message)
{
const CamelInternetAddress *sender;
- const gchar *name, *addr;
+ const gchar *name, *addr = NULL;
sender = camel_mime_message_get_from (message);
if (sender != NULL && camel_address_length (CAMEL_ADDRESS (sender)) > 0) {