diff options
Diffstat (limited to 'gzip.c')
-rw-r--r-- | gzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1246,7 +1246,7 @@ int gzip_main(int argc, char **argv) | |||
1246 | show_usage(); | 1246 | show_usage(); |
1247 | } | 1247 | } |
1248 | } | 1248 | } |
1249 | if (optind == argc) { | 1249 | if ((optind == argc) || (strcmp(argv[optind], "-") == 0)) { |
1250 | fromstdin = 1; | 1250 | fromstdin = 1; |
1251 | tostdout = 1; | 1251 | tostdout = 1; |
1252 | } | 1252 | } |