aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2007-10-26 20:15:44 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-10-26 20:15:44 +0800
commit7517f413700c53fb8d6ae7e43957435060fd714f (patch)
treecbdf26199f130fd788bb7bedea41ecc0511683da /calendar/conduits
parente48ca861ed32f75ae66aa6efab698635ef2b1cb9 (diff)
downloadgsoc2013-evolution-7517f413700c53fb8d6ae7e43957435060fd714f.tar.gz
gsoc2013-evolution-7517f413700c53fb8d6ae7e43957435060fd714f.tar.zst
gsoc2013-evolution-7517f413700c53fb8d6ae7e43957435060fd714f.zip
Zero out the GnomePilotRecord struct to silence a compiler warning.
2007-10-26 Matthew Barnes <mbarnes@redhat.com> * addressbook/conduit/address-conduit.c (local_record_to_pilot_record): * calendar/conduits/calendar/calendar-conduit.c (local_record_to_pilot_record): * calendar/conduits/memo/memo-conduit.c (local_record_to_pilot_record): * calendar/conduits/todo/todo-conduit.c (local_record_to_pilot_record): Zero out the GnomePilotRecord struct to silence a compiler warning. * calendar/gui/dialogs/memo-page.c (memo_page_select_organizer): Initialize def_address. * calendar/gui/e-itip-control.c: Use unions to avoid strict-aliasing violations. svn path=/trunk/; revision=34434
Diffstat (limited to 'calendar/conduits')
-rw-r--r--calendar/conduits/calendar/calendar-conduit.c4
-rw-r--r--calendar/conduits/memo/memo-conduit.c2
-rw-r--r--calendar/conduits/todo/todo-conduit.c2
3 files changed, 7 insertions, 1 deletions
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c
index f423b56254..b37941aafd 100644
--- a/calendar/conduits/calendar/calendar-conduit.c
+++ b/calendar/conduits/calendar/calendar-conduit.c
@@ -842,7 +842,9 @@ local_record_to_pilot_record (ECalLocalRecord *local,
g_assert (local->comp != NULL);
g_assert (local->appt != NULL );
-
+
+ memset (&p, 0, sizeof (GnomePilotRecord));
+
p.ID = local->local.ID;
p.category = local->local.category;
p.attr = local->local.attr;
diff --git a/calendar/conduits/memo/memo-conduit.c b/calendar/conduits/memo/memo-conduit.c
index 8c43da6a38..74f323987d 100644
--- a/calendar/conduits/memo/memo-conduit.c
+++ b/calendar/conduits/memo/memo-conduit.c
@@ -478,6 +478,8 @@ local_record_to_pilot_record (EMemoLocalRecord *local,
LOG (g_message ( "local_record_to_pilot_record\n" ));
+ memset (&p, 0, sizeof (GnomePilotRecord));
+
p.ID = local->local.ID;
p.category = local->local.category;
p.attr = local->local.attr;
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c
index 7ae7b32d2f..0594d53298 100644
--- a/calendar/conduits/todo/todo-conduit.c
+++ b/calendar/conduits/todo/todo-conduit.c
@@ -619,6 +619,8 @@ local_record_to_pilot_record (EToDoLocalRecord *local,
LOG (g_message ( "local_record_to_pilot_record\n" ));
+ memset (&p, 0, sizeof (GnomePilotRecord));
+
p.ID = local->local.ID;
p.category = local->local.category;
p.attr = local->local.attr;