[gnome-calendar] all: fix GCC uninitialized variables warnings
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] all: fix GCC uninitialized variables warnings
- Date: Fri, 24 Aug 2012 17:16:29 +0000 (UTC)
commit 444895437023e37452ec3c0269843ad093994c94
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Aug 24 19:00:55 2012 +0200
all: fix GCC uninitialized variables warnings
src/gcal-manager.c | 1 +
src/gcal-week-view.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-manager.c b/src/gcal-manager.c
index 74be18e..75bea58 100644
--- a/src/gcal-manager.c
+++ b/src/gcal-manager.c
@@ -1382,6 +1382,7 @@ gcal_manager_get_event_reminders (GcalManager *manager,
type = NULL;
time = NULL;
+ number = 0;
alarm = e_cal_component_get_alarm (event, l->data);
e_cal_component_alarm_get_action (alarm, &action);
diff --git a/src/gcal-week-view.c b/src/gcal-week-view.c
index 8e741c6..3d4c2f1 100644
--- a/src/gcal-week-view.c
+++ b/src/gcal-week-view.c
@@ -707,7 +707,7 @@ gcal_week_view_scroll_event (GtkWidget *widget,
}
else
{
- GtkWidget *range;
+ GtkWidget *range = NULL;
if (event->direction == GDK_SCROLL_UP || event->direction == GDK_SCROLL_DOWN)
range = priv->vscrollbar;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]