diff options
author | Mattias Andrée <maandree@kth.se> | 2016-08-06 02:00:30 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-08-06 02:00:30 +0200 |
commit | bd7d7605d8cbf46ef6bd8e8d2c40300aab6c01a1 (patch) | |
tree | 37de22be4c4b5b3757915c45cc373468f93abc43 | |
parent | m (diff) | |
download | cg-tools-bd7d7605d8cbf46ef6bd8e8d2c40300aab6c01a1.tar.gz cg-tools-bd7d7605d8cbf46ef6bd8e8d2c40300aab6c01a1.tar.bz2 cg-tools-bd7d7605d8cbf46ef6bd8e8d2c40300aab6c01a1.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | src/cg-gamma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cg-gamma.c b/src/cg-gamma.c index 566fc89..2df133a 100644 --- a/src/cg-gamma.c +++ b/src/cg-gamma.c @@ -388,13 +388,13 @@ int handle_args(int argc, char* argv[], char* method, char* site, char** crtcs, char* prio, char* rule) { int free_fflag = 0, saved_errno; - int q = xflag + dflag + (fflag && argc); + int q = xflag + dflag; q += (method != NULL) && !strcmp(method, "?"); q += (prio != NULL) && !strcmp(prio, "?"); q += (rule != NULL) && (!strcmp(rule, "?") || !strcmp(rule, "??")); for (; *crtcs; crtcs++) q += !strcmp(*crtcs, "?"); - if ((q > 1) || (xflag && ((fflag != NULL) || (argc > 0) || (prio != NULL)))) + if ((q > 1) || (fflag && argc) || (xflag && ((fflag != NULL) || (argc > 0) || (prio != NULL)))) usage(); if (argc == 1) { |