Skip to content

Commit ee0a736

Browse files
JeffLuooedsiper
authored andcommitted
output: add condition checking for config_map
Signed-off-by: Jeff Luo <[email protected]>
1 parent 927489b commit ee0a736

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

include/fluent-bit/flb_output.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,9 +649,11 @@ static inline int flb_output_config_map_set(struct flb_output_instance *ins,
649649
int ret;
650650

651651
/* Process normal properties */
652-
ret = flb_config_map_set(&ins->properties, ins->config_map, context);
653-
if (ret == -1) {
654-
return -1;
652+
if (ins->config_map) {
653+
ret = flb_config_map_set(&ins->properties, ins->config_map, context);
654+
if (ret == -1) {
655+
return -1;
656+
}
655657
}
656658

657659
/* Net properties */

0 commit comments

Comments
 (0)