Skip to content

Commit

Permalink
out_kinesis_streams: remove dead stores
Browse files Browse the repository at this point in the history
`tmp_size` is assigned twice where each of the assignments are not used.

Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski authored and nokute78 committed Aug 25, 2023
1 parent 37772cc commit 1f125c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/out_kinesis_streams/kinesis_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,6 @@ static int process_event(struct flb_kinesis *ctx, struct flush *buf,
time_key_ptr += strlen(ctx->time_key);
memcpy(time_key_ptr, "\":\"", 3);
time_key_ptr += 3;
tmp_size = buf->tmp_buf_size - buf->tmp_buf_offset;
tmp_size -= (time_key_ptr - tmp_buf_ptr);

/* merge out_buf to time_key_ptr */
memcpy(time_key_ptr, out_buf, len);
Expand Down

0 comments on commit 1f125c5

Please sign in to comment.