calyptia: fix segfault when some properties are not set.
@@ -91,6 +91,7 @@ static void pipeline_config_add_properties(flb_sds_t *buf, struct mk_list *props
mk_list_foreach(head, props) {
kv = mk_list_entry(head, struct flb_kv, _head);
+ if (kv->key != NULL && kv->val != NULL) {
flb_sds_printf(buf, " %s ", kv->key);
if (is_sensitive_property(kv->key)) {
@@ -103,6 +104,7 @@ static void pipeline_config_add_properties(flb_sds_t *buf, struct mk_list *props
flb_sds_printf(buf, "\n");
}
}
+}
flb_sds_t custom_calyptia_pipeline_config_get(struct flb_config *ctx)
{
