From fd67d7a343e612003b05297f63dda166f2c86057 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 12 Nov 2013 08:46:44 +0100 Subject: Fix some cppcheck warnings (uninitialized variable usages) --- addressbook/gui/widgets/eab-contact-display.c | 4 ++-- addressbook/gui/widgets/eab-gui-util.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/widgets/eab-contact-display.c b/addressbook/gui/widgets/eab-contact-display.c index c467e385e4..c62cb8ed0a 100644 --- a/addressbook/gui/widgets/eab-contact-display.c +++ b/addressbook/gui/widgets/eab-contact-display.c @@ -345,8 +345,8 @@ contact_display_object_requested (WebKitWebView *web_view, EContact *contact = display->priv->contact; const gchar *name = e_contact_get_const (contact, E_CONTACT_FILE_AS); const gchar *contact_uid = e_contact_get_const (contact, E_CONTACT_UID); - gchar *full_name; - EContactAddress *address; + gchar *full_name = NULL; + EContactAddress *address = NULL; GtkWidget *map = NULL; if (strstr (mime_type, "work") != NULL) { diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c index f64bd2dd18..37816397c3 100644 --- a/addressbook/gui/widgets/eab-gui-util.c +++ b/addressbook/gui/widgets/eab-gui-util.c @@ -665,7 +665,7 @@ get_locales (void) static gchar * get_locales_str (void) { - gchar *ret; + gchar *ret = NULL; gchar **loc = get_locales (); if (!loc) -- cgit v1.2.3