[tracker] libtracker-control: Add missing return to function precondition



commit d6253a40c8c963b6465d9df7b674e34929161091
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun Sep 10 18:43:07 2017 +0100

    libtracker-control: Add missing return to function precondition
    
    A follow-up to commit 9a17961b. Spotted by Coverity (CID 1456542).
    
    Signed-off-by: Philip Withnall <philip tecnocode co uk>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787246

 src/libtracker-control/tracker-miner-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-control/tracker-miner-manager.c b/src/libtracker-control/tracker-miner-manager.c
index 9a6756b..59e222f 100644
--- a/src/libtracker-control/tracker-miner-manager.c
+++ b/src/libtracker-control/tracker-miner-manager.c
@@ -1558,7 +1558,7 @@ tracker_miner_manager_index_file (TrackerMinerManager  *manager,
 {
        g_return_val_if_fail (TRACKER_IS_MINER_MANAGER (manager), FALSE);
        g_return_val_if_fail (G_IS_FILE (file), FALSE);
-       g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable));
+       g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable), FALSE);
 
        return miner_manager_index_file_sync (manager, METHOD_INDEX_FILE,
                                              file, cancellable, error);


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