Skip to content

Commit

Permalink
out_stackdriver: add type cast
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Aug 10, 2020
1 parent c131b3a commit bd8dec4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/out_stackdriver/stackdriver_http_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ static void validate_latency(msgpack_object_str latency_in_payload,
int i = 0, j = 0;

regex = flb_regex_create(pattern);
status = flb_regex_match(regex, latency_in_payload.ptr, latency_in_payload.size);
status = flb_regex_match(regex,
(unsigned char *) latency_in_payload.ptr,
latency_in_payload.size);
flb_regex_destroy(regex);
flb_sds_destroy(pattern);

Expand Down

0 comments on commit bd8dec4

Please sign in to comment.