Skip to content

Commit

Permalink
blocks: actually set the note block version
Browse files Browse the repository at this point in the history
Version 1 to start

Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Dec 30, 2023
1 parent 7ccd1a5 commit 5fee42e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/content_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ int ndb_parse_content(unsigned char *buf, int buf_size,
parser.blocks->num_blocks = 0;
parser.blocks->blocks_size = 0;
parser.blocks->flags = 0;
parser.blocks->version = 1;

blocks_start = start = parser.content.p;
while (parser.content.p < parser.content.end) {
Expand Down

0 comments on commit 5fee42e

Please sign in to comment.