diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-11-27 07:25:54 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-11-27 07:25:54 +0000 |
commit | be96efd1b4de4cca6ddb37b24a804f3678961d6d (patch) | |
tree | 84b7f5c5f27f91e97913d6d357c4855f720249d2 | |
parent | 6d46ef5c157b87f6a44e009b4fc7f60078ecce59 (diff) |
src/jpilot.c: jpilot_read_db_files(): fixed uninitialized variables.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3301 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/jpilot.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2013-11-27 + * src/jpilot.c: jpilot_read_db_files(): fixed uninitialized variable + "attrib", "unique_id" and "next_offset". + +2013-11-27 + * src/template.c: template_load(): fixed fp leak on error. * plugin/attachment_tool/attachment_tool.c: remove_attachment(): fixed fp leak on error. diff --git a/src/jpilot.c b/src/jpilot.c index ca8e391b..c6e3f3ee 100644 --- a/src/jpilot.c +++ b/src/jpilot.c @@ -899,9 +899,11 @@ static gint jpilot_read_db_files( JPilotFile *pilotFile, GList **records ) { temp_mem_rh = mem_rh; if (num_records) { + attrib = unique_id = 0; if (out_of_order) { find_next_offset(mem_rh, 0, &next_offset, &attrib, &unique_id); } else { + next_offset = 0xFFFFFF; if (mem_rh) { next_offset = mem_rh->offset; attrib = mem_rh->attrib; |