diff options
| author | Jesper Jensen <jesper@slashwin.dk> | 2021-09-05 17:33:21 +0200 |
|---|---|---|
| committer | Jesper Jensen <jesper@slashwin.dk> | 2021-09-05 17:33:21 +0200 |
| commit | 4c2f2c7e4c36989463e2a44c60f240cf9c0e1a48 (patch) | |
| tree | ace37fd9a7e03942c60caecfa2cdcd1951235b00 /src/benc.c | |
| parent | 9b4973e7d96a3605583c3f9a80567945c8d4be71 (diff) | |
Add error support
Diffstat (limited to 'src/benc.c')
| -rw-r--r-- | src/benc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |
