[glib/glib-2-54] gio-tool: fix inverted logic in monitor tool
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-54] gio-tool: fix inverted logic in monitor tool
- Date: Fri, 10 Nov 2017 08:54:41 +0000 (UTC)
commit 5be7554a6591bfae9d86ee6ad35bc3ef75eda5e5
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]