diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-11-11 00:35:22 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-11-11 00:35:22 +0800 |
commit | a162472fd61b27675181cc74a7b695a5cfb0c089 (patch) | |
tree | 8a9a34efab084a0b094fd9d39bfdef8e795dbc3c | |
parent | 54ebbd37f39e660a4af5e97c1f0d25b0777eb142 (diff) | |
download | gsoc2013-evolution-a162472fd61b27675181cc74a7b695a5cfb0c089.tar.gz 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
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/conduits/calendar/calendar-conduit.c | 3 | ||||
-rw-r--r-- | calendar/conduits/todo/todo-conduit.c | 3 |
3 files changed, 11 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index b5d16bd41f..91a3b049ed 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +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 + 2000-11-09 Jesse Pavel <jpavel@helixcode.com> * gui/e-itip-control.c: I wrote the code so that recipients of meeting requests 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; |