diff options
author | Ivan Malison <IvanMalison@gmail.com> | 2018-06-25 18:24:12 -0700 |
---|---|---|
committer | Dmitry Smirnov <onlyjob@debian.org> | 2018-07-07 08:03:38 +0200 |
commit | f38d473465c8854dfe70a87cd88bf6aedf15e8c3 (patch) | |
tree | af9b00bee4d8103a5eb51bf2981f2c397fcaecfc | |
parent | 617e3c14d3488aa1423b0cb50454b7531f6cc8db (diff) |
[PATCH] Proceed as normal if nothing provided in stdin
Gbp-Pq: Name 90b.patch
-rw-r--r-- | src/main.c | 1 | ||||
-rw-r--r-- | src/utils.c | 6 |
2 files changed, 3 insertions, 4 deletions
@@ -1029,7 +1029,6 @@ int main(int argc, char **argv) { return 0; } g_string_free(piped_string, TRUE); - return -1; } } diff --git a/src/utils.c b/src/utils.c index 5e7776c..4439f32 100644 --- a/src/utils.c +++ b/src/utils.c @@ -118,7 +118,7 @@ GString *remove_newlines_string(GString *string) gboolean parse_options(int argc, char* argv[]) { /* Declare argument options and argument variables */ - gboolean icon = FALSE, daemon = FALSE, + gboolean no_icon = FALSE, daemon = FALSE, clipboard = FALSE, primary = FALSE, exit = FALSE; @@ -135,7 +135,7 @@ gboolean parse_options(int argc, char* argv[]) "no-icon", 'n', 0, G_OPTION_ARG_NONE, - &icon, _("Do not use status icon (Ctrl-Alt-P for menu)"), + &no_icon, _("Do not use status icon (Ctrl-Alt-P for menu)"), NULL }, { @@ -177,7 +177,7 @@ gboolean parse_options(int argc, char* argv[]) /* Check which options were parseed */ /* Do not display icon option */ - if (icon) + if (no_icon) { prefs.no_icon = TRUE; } |