cleaning master
authorLaurent Mazet <mazet@softndesign.org>
Tue, 9 Jan 2024 13:14:19 +0000 (14:14 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Tue, 9 Jan 2024 13:14:19 +0000 (14:14 +0100)
hexdump.c

index c65675b1acd1695ddf7eb016070e0104be1b3a4c..02814449497c964194fcbd51abc6f53e08e42c1d 100644 (file)
--- 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 */