router: use sds string for match string
#include <fluent-bit/flb_info.h>
#include <fluent-bit/flb_mem.h>
#include <fluent-bit/flb_str.h>
+#include <fluent-bit/flb_sds.h>
#include <fluent-bit/flb_input.h>
#include <fluent-bit/flb_output.h>
#include <fluent-bit/flb_config.h>
@@ -157,7 +158,7 @@ int flb_router_io_set(struct flb_config *config)
) {
flb_debug("[router] default match rule %s:%s",
i_ins->name, o_ins->name);
- o_ins->match = flb_strdup("*");
+ o_ins->match = flb_sds_create_len("*", 1);
flb_router_connect(i_ins, o_ins);
return 0;
}
