Skip to content

Commit

Permalink
config: fix compilation with FLB_HAVE_STATIC_CONF
Browse files Browse the repository at this point in the history
Fixes:

```
/src/src/config_format/flb_cf_yaml.c: In function 'state_create':
/src/src/config_format/flb_cf_yaml.c:1906:5: error: 's' undeclared (first use in this function)
     s->file->name = flb_sds_create("***static***");
     ^
```
  • Loading branch information
bglimepoint committed Jun 5, 2024
1 parent b976d74 commit 0ac9ee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config_format/flb_cf_yaml.c
Original file line number Diff line number Diff line change
Expand Up @@ -1903,8 +1903,8 @@ static struct parser_state *state_create(struct file_state *parent, struct file_

#else

s->file->name = flb_sds_create("***static***");
s->file->path = flb_sds_create("***static***");
state->file->name = flb_sds_create("***static***");
state->file->path = flb_sds_create("***static***");

#endif

Expand Down

0 comments on commit 0ac9ee0

Please sign in to comment.