diff options
-rw-r--r-- | coreutils/stty.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c index c354aac9c..15cb05293 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
@@ -568,10 +568,11 @@ static int find_param(const char * const name) | |||
568 | NULL | 568 | NULL |
569 | }; | 569 | }; |
570 | int i = index_in_str_array(params, name); | 570 | int i = index_in_str_array(params, name); |
571 | if (i) { | 571 | if (i < 0) |
572 | if (!(i == 4 || i == 5)) | 572 | return 0; |
573 | i |= 0x80; | 573 | if (!(i == 4 || i == 5)) |
574 | } | 574 | i |= 0x80; |
575 | |||
575 | return i; | 576 | return i; |
576 | } | 577 | } |
577 | 578 | ||