From 6aa9bee84613056b01b543b7a3133c71ecee8d21 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Tue, 9 Jan 2024 14:14:19 +0100 Subject: [PATCH] cleaning --- hexdump.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 */ -- 2.30.2