[evolution] Fix some cppcheck warnings (uninitialized variable usages)
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Fix some cppcheck warnings (uninitialized variable usages)
- Date: Tue, 12 Nov 2013 07:47:50 +0000 (UTC)
commit fd67d7a343e612003b05297f63dda166f2c86057
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 f64bd2d..3781639 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)
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]