[evolution-data-server] Bug 632376 - Rewind in camel-disco-diary to fix a crash



commit 754b9f9581ea66c0da419ba6f2e78a5874ca1980
Author: Pacho Ramos <pacho condmat1 ciencias uniovi es>
Date:   Sun Oct 17 13:17:14 2010 -0400

    Bug 632376 - Rewind in camel-disco-diary to fix a crash

 camel/camel-disco-diary.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-disco-diary.c b/camel/camel-disco-diary.c
index 9c48a6a..cb4f516 100644
--- a/camel/camel-disco-diary.c
+++ b/camel/camel-disco-diary.c
@@ -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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]