[tracker] libtracker-data: Do not propagate error if this is NULL



commit 8c21a1068441ef58f0131be0b4b8cd12861676fe
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Mon Nov 30 18:10:56 2009 +0100

    libtracker-data: Do not propagate error if this is NULL

 src/libtracker-data/tracker-data-update.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index d68e679..488ca43 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -694,7 +694,9 @@ tracker_data_blank_buffer_flush (GError **error)
 	g_hash_table_insert (blank_buffer.table, subject, blank_uri);
 	g_checksum_free (checksum);
 
-	g_propagate_error (error, actual_error);
+	if (actual_error) {
+		g_propagate_error (error, actual_error);
+	}
 }
 
 static void



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