aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-11-11 00:35:22 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-11-11 00:35:22 +0800
commita162472fd61b27675181cc74a7b695a5cfb0c089 (patch)
tree8a9a34efab084a0b094fd9d39bfdef8e795dbc3c /calendar/conduits
parent54ebbd37f39e660a4af5e97c1f0d25b0777eb142 (diff)
downloadgsoc2013-evolution-a162472fd61b27675181cc74a7b695a5cfb0c089.tar
gsoc2013-evolution-a162472fd61b27675181cc74a7b695a5cfb0c089.tar.gz
gsoc2013-evolution-a162472fd61b27675181cc74a7b695a5cfb0c089.tar.bz2
gsoc2013-evolution-a162472fd61b27675181cc74a7b695a5cfb0c089.tar.lz
gsoc2013-evolution-a162472fd61b27675181cc74a7b695a5cfb0c089.tar.xz
gsoc2013-evolution-a162472fd61b27675181cc74a7b695a5cfb0c089.tar.zst
gsoc2013-evolution-a162472fd61b27675181cc74a7b695a5cfb0c089.zip
Inc the iterator before finding the next changed item.
2000-11-10 JP Rosevear <jpr@helixcode.com> * conduits/calendar/calendar-conduit.c (for_each_modified): Inc the iterator before finding the next changed item. * conduits/todo/todo-conduit.c (for_each_modified): ditto svn path=/trunk/; revision=6533
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;