changeset 29908:3583b11e151b stable

main.cc: Remove invalid case (bug #60886). * src/main.in.cc (main): Remove invalid case. Fix typo.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 22 Jul 2021 19:04:52 +0200
parents dffd1c943f1a
children 68fa4ac060ce 0f41e117789f
files src/main.in.cc
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.in.cc	Sun Jul 18 15:54:48 2021 +0200
+++ b/src/main.in.cc	Thu Jul 22 19:04:52 2021 +0200
@@ -300,7 +300,6 @@
             break;
 
           case EVAL_OPTION:
-          case 0:
             eval_code = true;
             for (int i = old_optind; i < next_optind; i++)
               new_argv[k++] = argv[i];
@@ -325,7 +324,7 @@
         }
     }
 
-  // Tread trailing arguments as commands to be executed
+  // Treat trailing arguments as commands to be executed
   if (next_optind < argc)
     {
       eval_code = true;