cleaning
[hexdump.git] / 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 */