Skip to content

Commit 8962e89

Browse files
authored
Review pass for base58check implementation (#22)
1 parent f635b96 commit 8962e89

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/base2.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ static bool b58tobin(void *bin, size_t *binszp, const char *b58, size_t b58sz) {
7575
size_t i, j;
7676
unsigned zerocount = 0;
7777

78-
for (i = 0; i < outisz; ++i) {
79-
outi[i] = 0;
80-
}
78+
memset(outi, 0, sizeof(outi));
8179

8280
for (i = 0; i < b58sz && b58u[i] == '1'; ++i)
8381
++zerocount;

0 commit comments

Comments
 (0)