[glib] gio-tool: fix inverted logic in monitor tool
- From: Christian Kellner <gicmo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio-tool: fix inverted logic in monitor tool
- Date: Thu, 9 Nov 2017 10:04:35 +0000 (UTC)
commit b9b7a1d03920c3ba719a3223b20bae12c97b7eb2
Author: Christian Kellner <christian kellner me>
Date: Wed Nov 8 21:16:37 2017 +0100
gio-tool: fix inverted logic in monitor tool
The tool should refuse to work if none of the locations to watch
are set, not if *any* of them are unset.
https://bugzilla.gnome.org/show_bug.cgi?id=790093
gio/gio-tool-monitor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gio-tool-monitor.c b/gio/gio-tool-monitor.c
index 9c0352c..d6de7a2 100644
--- a/gio/gio-tool-monitor.c
+++ b/gio/gio-tool-monitor.c
@@ -223,7 +223,7 @@ handle_monitor (int argc, gchar *argv[], gboolean do_help)
return 1;
}
- if (!watch_dirs || !watch_files || !watch_direct || !watch_silent || !watch_default)
+ if (!watch_dirs && !watch_files && !watch_direct && !watch_silent && !watch_default)
{
show_help (context, _("No locations given"));
g_option_context_free (context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]