aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/conduits')
-rw-r--r--calendar/conduits/calendar/calendar-conduit.c3
-rw-r--r--calendar/conduits/todo/todo-conduit.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c
index 90bcb5e685..7341d7a292 100644
--- a/calendar/conduits/calendar/calendar-conduit.c
+++ b/calendar/conduits/calendar/calendar-conduit.c
@@ -849,7 +849,8 @@ for_each_modified (GnomePilotConduitSyncAbs *conduit,
}
} else {
count++;
- if ((iterator = next_changed_item (ctxt, iterator))) {
+ iterator = g_list_next (iterator);
+ if (iterator && (iterator = next_changed_item (ctxt, iterator))) {
CalObjChange *coc = NULL;
coc = iterator->data;
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c
index 12b04ad78c..b41dead5cc 100644
--- a/calendar/conduits/todo/todo-conduit.c
+++ b/calendar/conduits/todo/todo-conduit.c
@@ -723,7 +723,8 @@ for_each_modified (GnomePilotConduitSyncAbs *conduit,
}
} else {
count++;
- if ((iterator = next_changed_item (ctxt, iterator))) {
+ iterator = g_list_next (iterator);
+ if (iterator && (iterator = next_changed_item (ctxt, iterator))) {
CalObjChange *coc = NULL;
coc = iterator->data;