aboutsummaryrefslogtreecommitdiffstats
path: root/pure-java
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-17 14:42:00 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-17 14:42:00 +0200
commitee09d35e3cc6be60f4fa424191ef6ef79d566ce3 (patch)
tree1de721adffeafcafd4ff1f7e0958c40cc56ae456 /pure-java
parentfix for exception catching with stdin as filename by None (diff)
downloadsha3sum-ee09d35e3cc6be60f4fa424191ef6ef79d566ce3.tar.gz
sha3sum-ee09d35e3cc6be60f4fa424191ef6ef79d566ce3.tar.bz2
sha3sum-ee09d35e3cc6be60f4fa424191ef6ef79d566ce3.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--pure-java/sha3sum.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/pure-java/sha3sum.java b/pure-java/sha3sum.java
index 22427a5..000a57f 100644
--- a/pure-java/sha3sum.java
+++ b/pure-java/sha3sum.java
@@ -333,12 +333,8 @@ public class sha3sum
String filename;
for (int f = 0; f < fptr; f++)
- { if (((filename = files[f]) == null) && (stdin != null))
- { System.out.write(stdin);
- continue;
- }
- String rc = "";
- String fn = filename == null ? "/dev/stdin" : filename;
+ { String rc = "";
+ String fn = (filename = files[f]) == null ? "/dev/stdin" : filename;
InputStream file = null;
try
{