[Tracker] [PATCH] 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
-- 
1.6.0.4




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