Skip to content

Commit

Permalink
Init nkeys in the yaml file struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriel Ramirez committed Sep 18, 2024
1 parent ef02461 commit 5d912ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parser/yaml_parser_binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ int open_and_parse_file_wrap(char *filename, int *file_id)

if(!yaml_parser_initialize(&parser)) return -2;

my_files.files[j].nkeys = 0;
my_files.files[j].keys = (key_value_pairs*)calloc(1, sizeof(key_value_pairs));

parent[0]=0;
Expand Down

0 comments on commit 5d912ba

Please sign in to comment.