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) show_usage(); } } - if (optind == argc) { + if ((optind == argc) || (strcmp(argv[optind], "-") == 0)) { fromstdin = 1; tostdout = 1; } |