Skip to content

Commit

Permalink
initialise vtenc struct if allocation is succesful on vtenc_create()
Browse files Browse the repository at this point in the history
  • Loading branch information
vteromero committed Feb 16, 2022
1 parent 1c7ebf3 commit b33ffff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions common.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ vtenc *vtenc_create(void)

handler = malloc(sizeof(*handler));

if (handler) {
handler->params.allow_repeated_values = 1;
handler->params.skip_full_subtrees = 1;
handler->params.min_cluster_length = 1;
handler->out_size = 0;
}

return handler;
}

Expand Down

0 comments on commit b33ffff

Please sign in to comment.