aboutsummaryrefslogtreecommitdiffstats
path: root/c
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 /c
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 'c')
-rw-r--r--c/sha3sum.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/c/sha3sum.c b/c/sha3sum.c
index a03f0c2..4c93833 100644
--- a/c/sha3sum.c
+++ b/c/sha3sum.c
@@ -567,11 +567,7 @@ int main(int argc, char** argv)
char* chunk;
char* bs;
- if (((filename = *(files + f)) == null) && stdin)
- {
- printf("%s", stdin);
- continue;
- }
+ filename = *(files + f)
fn = filename ? filename : "/dev/stdin";
file = fopen(fn, "r");
if (file == null)