[tracker] tracker: Return correctly for {get,set}_log_verbosity



commit d483054eb9db88783cbeb16570b2c03977abc02d
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker/tracker-daemon.c b/src/tracker/tracker-daemon.c
index 290b3c0..2c25b2c 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]