[evolution] Fix a potential uninitialized variable use in em-composer-utils.c.
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Fix a potential uninitialized variable use in em-composer-utils.c.
- Date: Sat, 16 Jan 2010 03:21:21 +0000 (UTC)
commit 9cb166341e0231ba1e547f90838c512867f51141
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Jan 15 22:12:45 2010 -0500
Fix a potential uninitialized variable use in em-composer-utils.c.
Caught by the Clang Static Analyzer.
mail/em-composer-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 6dfd7cb..c90097f 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]