aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/gzip.c2
-rw-r--r--gzip.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index cdf226889..54bb72745 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -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 }
diff --git a/gzip.c b/gzip.c
index cdf226889..54bb72745 100644
--- a/gzip.c
+++ b/gzip.c
@@ -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 }