From: Laurent Mazet Date: Tue, 9 Jan 2024 13:14:19 +0000 (+0100) Subject: cleaning X-Git-Url: https://secure.softndesign.org/git/?p=hexdump.git;a=commitdiff_plain;h=6aa9bee84613056b01b543b7a3133c71ecee8d21 cleaning --- diff --git a/hexdump.c b/hexdump.c index c65675b..0281444 100644 --- a/hexdump.c +++ b/hexdump.c @@ -526,14 +526,13 @@ int main (int argc, char *argv[]) } /* check input */ + fin = stdin; if (input) { fin = fopen (input, "rb"); if (!fin) { VERBOSE (ERROR, fprintf (stderr, "error: can't open file '%s'\n", input)); return 1; } - } else { - fin = stdin; } /* check output */