Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion plugins/filter_kubernetes/kubernetes.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static int merge_log_handler(msgpack_object o,
{
int ret;
int new_size;
int root_type;
int root_type = FLB_PACK_JSON_UNDEFINED;
int records = 0;
char *tmp;

Expand Down
2 changes: 1 addition & 1 deletion src/flb_pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ static int pack_json_to_msgpack_yyjson(const char *js, size_t len, char **buffer
msgpack_packer pck;
char *start, *end, *insitu_buf;

if (!js || !buffer || !size) {
if (!js || !buffer || !size || len == 0) {
return -1;
}

Expand Down
Loading