[evolution/gnome-3-10] Fix some cppcheck warnings (uninitialized variable usages)



commit 63f68058c679a4d0494b175363a06a84c3164e24
Author: Milan Crha <mcrha redhat com>
Date:   Tue Nov 12 08:46:44 2013 +0100

    Fix some cppcheck warnings (uninitialized variable usages)

 addressbook/gui/widgets/eab-contact-display.c |    4 ++--
 addressbook/gui/widgets/eab-gui-util.c        |    2 +-
 modules/calendar/e-cal-shell-backend.c        |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/addressbook/gui/widgets/eab-contact-display.c b/addressbook/gui/widgets/eab-contact-display.c
index c467e38..c62cb8e 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 70e5682..86d424d 100644
--- a/addressbook/gui/widgets/eab-gui-util.c
+++ b/addressbook/gui/widgets/eab-gui-util.c
@@ -663,7 +663,7 @@ get_locales (void)
 static gchar *
 get_locales_str (void)
 {
-       gchar *ret;
+       gchar *ret = NULL;
        gchar **loc = get_locales ();
 
        if (!loc)
diff --git a/modules/calendar/e-cal-shell-backend.c b/modules/calendar/e-cal-shell-backend.c
index 6a9bc1a..b43f356 100644
--- a/modules/calendar/e-cal-shell-backend.c
+++ b/modules/calendar/e-cal-shell-backend.c
@@ -413,7 +413,7 @@ cal_shell_backend_handle_uri_cb (EShellBackend *shell_backend,
        gchar *comp_rid = NULL;
        GDate start_date;
        GDate end_date;
-       icaltimezone *zone;
+       icaltimezone *zone = NULL;
        gboolean handled = FALSE;
        GError *error = NULL;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]