aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-07-24 12:22:28 +0200
committerMattias Andrée <maandree@operamail.com>2013-07-24 12:22:28 +0200
commitf45f19d1ef1ccc2be4d8ceaf9d80571748859f85 (patch)
tree527a35ab54020eab4e0ac2242cabd1596542cfda
parentforgot to initialise memort for sets (diff)
downloadsha3sum-f45f19d1ef1ccc2be4d8ceaf9d80571748859f85.tar.gz
sha3sum-f45f19d1ef1ccc2be4d8ceaf9d80571748859f85.tar.bz2
sha3sum-f45f19d1ef1ccc2be4d8ceaf9d80571748859f85.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--c/sha3sum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/sha3sum.c b/c/sha3sum.c
index 122d6f4..e8d982a 100644
--- a/c/sha3sum.c
+++ b/c/sha3sum.c
@@ -51,7 +51,7 @@ inline void putchars(char* bytes, long n)
SET set_new()
{
long i;
- void** rc = = (void**)malloc(sizeof(void*) << 4);
+ void** rc = (void**)malloc(sizeof(void*) << 4);
for (i = 0; i < 16; i++)
*(rc + i) = 0;
return rc;
@@ -201,7 +201,7 @@ int main(int argc, char** argv)
char** args = argv + 1;
- _O = _S = _R = _C = _W = _I = false;
+ _O = _S = _R = _C = _W = _I = _J = false;
O = S = R = C = W = I = J = 0;
o = s = r = c = w = i = j = 0;
@@ -579,7 +579,7 @@ int main(int argc, char** argv)
char* chunk;
char* bs;
- filename = *(files + f)
+ filename = *(files + f);
fn = filename ? filename : "/dev/stdin";
file = fopen(fn, "r");
if (file == null)