From ee09d35e3cc6be60f4fa424191ef6ef79d566ce3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 17 Jun 2013 14:42:00 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- c/sha3sum.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'c') 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) -- cgit v1.2.3-70-g09d2