Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dzurikmiroslav committed Feb 6, 2025
1 parent b6b9b73 commit e8b184c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/script/src/component_params.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ static const char* TAG = "component_params";

static component_param_list_t* yaml_file_read(FILE* src, const char* key)
{
component_param_list_t* list = (component_param_list_t*)malloc(sizeof(component_param_list_t));
SLIST_INIT(list);

yaml_parser_t parser;
yaml_event_t event;

Expand All @@ -28,6 +25,9 @@ static component_param_list_t* yaml_file_read(FILE* src, const char* key)
return NULL;
}

component_param_list_t* list = (component_param_list_t*)malloc(sizeof(component_param_list_t));
SLIST_INIT(list);

yaml_parser_set_input_file(&parser, src);

int level = 0;
Expand Down

0 comments on commit e8b184c

Please sign in to comment.