Bug 632376 - Rewind in camel-disco-diary to fix a crash
authorPacho Ramos <pacho@condmat1.ciencias.uniovi.es>
Sun, 17 Oct 2010 17:17:14 +0000 (13:17 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Sun, 17 Oct 2010 17:21:54 +0000 (13:21 -0400)
camel/camel-disco-diary.c

index 9c48a6a..cb4f516 100644 (file)
@@ -421,6 +421,7 @@ camel_disco_diary_replay (CamelDiscoDiary *diary,
 
        /* Truncate the log */
        ftruncate (fileno (diary->file), 0);
+       rewind (diary->file);
 
        g_propagate_error (error, local_error);
 }