r2220 - trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src
njp at sita.openmoko.org
njp at sita.openmoko.org
Tue Jun 12 13:35:53 CEST 2007
Author: njp
Date: 2007-06-12 13:35:52 +0200 (Tue, 12 Jun 2007)
New Revision: 2220
Modified:
trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c
Log:
Make sure entry variable is set to NULL for each iteration, to stop overwriting other entries
Modified: trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c 2007-06-12 11:25:45 UTC (rev 2219)
+++ trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c 2007-06-12 11:35:52 UTC (rev 2220)
@@ -1289,11 +1289,12 @@
{
icalcomponent *ical_comp = NULL ;
GList *cur_entry = NULL ;
- MokoJournalEntry *entry = NULL ;
int offset=0 ;
for (cur_entry = a_entries ; cur_entry ; cur_entry = cur_entry->next)
{
+ MokoJournalEntry *entry = NULL ;
+
/*****************
* <sanity checks>
*****************/
@@ -1337,8 +1338,7 @@
continue ;
}
moko_journal_add_entry (a_journal, entry) ;
- notify_entry_added (a_journal, entry);
- entry = NULL ;
+ notify_entry_added (a_journal, entry) ;
}
}
More information about the commitlog
mailing list