summaryrefslogtreecommitdiff
path: root/src/benc.c
diff options
context:
space:
mode:
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) {