Omit needless get_some_switches code

* src/patch.c (get_some_switches): Remove unnecessary
initialization and testing.
This commit is contained in:
Paul Eggert 2024-09-18 12:15:29 -07:00
parent ee3cc4016d
commit 606c09176c

View File

@ -916,12 +916,6 @@ static void
get_some_switches (void)
{
int optc;
free (outrej.name);
outrej.name = nullptr;
outrej.exists = nullptr;
if (optind == Argc)
return;
while (0 <= (optc = getopt_long (Argc, Argv, shortopts, longopts, nullptr)))
switch (optc) {
case 'b':