summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-09-04 09:49:30 +1000
committerNathan Scott <nathans@redhat.com>2020-09-04 09:50:18 +1000
commit0750ff7e76d845a70749cc00fa25dbe98a7147a1 (patch)
tree7a601cbbb5583893e8a2af8bf63d39abec01ff32 /htop.c
parent7734dfe55d7c005063f2682e5611fc11e9143fd9 (diff)
Fix regression in -u optional-argument handling
Resolves https://github.com/htop-dev/htop/issues/91
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index bbf3a911..37727d00 100644
--- a/htop.c
+++ b/htop.c
@@ -98,7 +98,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
int opt, opti=0;
/* Parse arguments */
- while ((opt = getopt_long(argc, argv, "hvmCs:td:u:Up:", long_opts, &opti))) {
+ while ((opt = getopt_long(argc, argv, "hvmCs:td:u::Up:", long_opts, &opti))) {
if (opt == EOF) break;
switch (opt) {
case 'h':

© 2014-2024 Faster IT GmbH | imprint | privacy policy