summaryrefslogtreecommitdiff
path: root/src/benc.c
diff options
context:
space:
mode:
authorJesper Jensen <jesper@slashwin.dk>2021-09-05 17:33:21 +0200
committerJesper Jensen <jesper@slashwin.dk>2021-09-05 17:33:21 +0200
commit4c2f2c7e4c36989463e2a44c60f240cf9c0e1a48 (patch)
treeace37fd9a7e03942c60caecfa2cdcd1951235b00 /src/benc.c
parent9b4973e7d96a3605583c3f9a80567945c8d4be71 (diff)
Add error support
Diffstat (limited to 'src/benc.c')
-rw-r--r--src/benc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/benc.c b/src/benc.c
index 1e85e06..4622698 100644
--- a/src/benc.c
+++ b/src/benc.c
@@ -50,7 +50,7 @@ void indent(int depth) {
}
void benc_print(const struct benc_node* stream, size_t stream_len) {
- int depth;
+ int depth = 0;
const struct benc_node* cursor = stream;
for(; cursor < stream + stream_len; cursor++) {
switch(cursor->type) {