Skip to content

Commit

Permalink
out_opentelemetry: coding style fix
Browse files Browse the repository at this point in the history
Signed-off-by: leonardo-albertovich <leonardo.alminana@chronosphere.io>
  • Loading branch information
leonardo-albertovich authored and edsiper committed Sep 1, 2024
1 parent c7e6352 commit 0fbe28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/out_opentelemetry/opentelemetry_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ Opentelemetry__Proto__Common__V1__AnyValue *msgpack_bin_to_otlp_any_value(struct
result->bytes_value.len = o->via.bin.size;
result->bytes_value.data = flb_malloc(o->via.bin.size);

if (result->bytes_value.data) {
if (result->bytes_value.data != NULL) {
memcpy(result->bytes_value.data, o->via.bin.ptr, o->via.bin.size);
}
else {
Expand Down

0 comments on commit 0fbe28c

Please sign in to comment.