diff options
author | Milan Crha <mcrha@redhat.com> | 2013-11-12 15:46:44 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2013-11-12 15:46:44 +0800 |
commit | fd67d7a343e612003b05297f63dda166f2c86057 (patch) | |
tree | 3fd198fee7eba0fedd3012ab6581c4368784fda3 /addressbook/gui | |
parent | 3c30fb17476059e2a30df110bf9842b2fecee634 (diff) | |
download | gsoc2013-evolution-fd67d7a343e612003b05297f63dda166f2c86057.tar gsoc2013-evolution-fd67d7a343e612003b05297f63dda166f2c86057.tar.gz gsoc2013-evolution-fd67d7a343e612003b05297f63dda166f2c86057.tar.bz2 gsoc2013-evolution-fd67d7a343e612003b05297f63dda166f2c86057.tar.lz gsoc2013-evolution-fd67d7a343e612003b05297f63dda166f2c86057.tar.xz gsoc2013-evolution-fd67d7a343e612003b05297f63dda166f2c86057.tar.zst gsoc2013-evolution-fd67d7a343e612003b05297f63dda166f2c86057.zip |
Fix some cppcheck warnings (uninitialized variable usages)
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/widgets/eab-contact-display.c | 4 | ||||
-rw-r--r-- | addressbook/gui/widgets/eab-gui-util.c | 2 |
2 files changed, 3 insertions, 3 deletions
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) |