summaryrefslogtreecommitdiff
path: root/staging
diff options
context:
space:
mode:
authorMichael R. Torres <6692889+micrictor@users.noreply.github.com>2020-02-19 20:59:36 -0800
committerTobias Klauser <tobias.klauser@gmail.com>2020-02-20 09:25:39 +0100
commit8d84c45d196f5d5c4209f82388df7688e7196ddd (patch)
treec3eeb72e4d2c7021e4b74dc2625ed7e5d72a5f0e /staging
parent61f7607328f30718daf27c8d1da2101c7ec30f9e (diff)
mz: Fix accidental assignment in conditional statement
Corrects the accidental assignment of _c_ to 'c' or 'p' due to a missing equals sign. This enables the proper display of the missing argument error message for all relevant options. Signed-off-by: Michael R Torres <mic.ric.tor@gmail.com>
Diffstat (limited to 'staging')
-rw-r--r--staging/mausezahn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/staging/mausezahn.c b/staging/mausezahn.c
index c38ea46..6c36166 100644
--- a/staging/mausezahn.c
+++ b/staging/mausezahn.c
@@ -590,8 +590,8 @@ int getopts (int argc, char *argv[])
}
break;
case '?':
- if ((optopt == 'a') || (optopt == 'b') || (optopt = 'c') ||
- (optopt == 'd') || (optopt == 'f') || (optopt = 'p') ||
+ if ((optopt == 'a') || (optopt == 'b') || (optopt == 'c') ||
+ (optopt == 'd') || (optopt == 'f') || (optopt == 'p') ||
(optopt == 't') || (optopt == 'm'))
fprintf (stderr, " mz/getopts: Option -%c requires an argument.\n", optopt);
else if (isprint (optopt))