[tracker/fts-property-names-cleanup: 2/3] libtracker-miner: Make sure we return NULL on FileDataProvider begin() errors



commit 768fbcb2b7cf816834255ced91f393af30de7f94
Author: Martyn Russell <martyn lanedo com>
Date:   Thu Aug 14 10:36:24 2014 +0100

    libtracker-miner: Make sure we return NULL on FileDataProvider begin() errors

 src/libtracker-miner/tracker-file-data-provider.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-data-provider.c 
b/src/libtracker-miner/tracker-file-data-provider.c
index 6e22396..91047f4 100644
--- a/src/libtracker-miner/tracker-file-data-provider.c
+++ b/src/libtracker-miner/tracker-file-data-provider.c
@@ -157,6 +157,8 @@ file_data_provider_begin (TrackerDataProvider  *data_provider,
 
                g_propagate_error (error, local_error);
                g_free (uri);
+
+               return NULL;
        }
 
        enumerator = tracker_file_enumerator_new (fe);


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