Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backports: v3.2 20240108 #9811

Draft
wants to merge 1 commit into
base: 3.2
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions plugins/in_systemd/systemd.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,16 @@ static int systemd_enumerate_data_store(struct flb_config *config,

cfl_array_append_string_s(array,
tmp_val->data.as_string,
strlen(tmp_val->data.as_string),
tmp_val->size,
CFL_FALSE);
cfl_array_append_string_s(array, (char *)val, strlen(val), CFL_FALSE);
cfl_array_append_string_s(array, (char *)val, len, CFL_FALSE);
cfl_kvlist_insert_array_s(kvlist, list_key, key_len, array);
cfl_variant_destroy(tmp_val);
break;
case CFL_VARIANT_ARRAY:
/* Just appending the newly arrived field(s) */
array = tmp_val->data.as_array;
cfl_array_append_string_s(array, (char *)val, strlen(val), CFL_FALSE);
cfl_array_append_string_s(array, (char *)val, len, CFL_FALSE);
break;
default:
/* nop */
Expand All @@ -236,7 +236,7 @@ static int systemd_enumerate_data_store(struct flb_config *config,
}
else {
cfl_kvlist_insert_string_s(kvlist, list_key, key_len,
(char *)val, strlen(val), CFL_FALSE);
(char *)val, len, CFL_FALSE);
}

flb_sds_destroy(list_key);
Expand Down
Loading