[tracker-miners/wip/carlosg/cli-split: 5/23] tracker: Return correctly for {get, set}_log_verbosity



commit 1a7cbb4fe3ec07439c25ed88cf203e82690b71b3
Author: Thomas Bechtold <tbechtold suse com>
Date:   Sun Oct 8 19:50:24 2017 +0200

    tracker: Return correctly for {get,set}_log_verbosity
    
    Every command switch should return properly. Otherwise the code
    reaches g_warn_if_reached () and a warning is printed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788680

 src/tracker/tracker-daemon.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/tracker/tracker-daemon.c b/src/tracker/tracker-daemon.c
index 290b3c0da..2c25b2c07 100644
--- a/src/tracker/tracker-daemon.c
+++ b/src/tracker/tracker-daemon.c
@@ -1607,6 +1607,7 @@ daemon_run (void)
                g_print ("\n");
 
                tracker_gsettings_free (all);
+               return EXIT_SUCCESS;
        }
 
        if (set_log_verbosity) {
@@ -1649,6 +1650,7 @@ daemon_run (void)
                g_print ("\n");
 
                tracker_gsettings_free (all);
+               return EXIT_SUCCESS;
        }
 
        if (verbosity_type_enum_class_pointer) {


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