Skip to content

Commit d1bd06b

Browse files
0x006EA1E5edsiper
authored andcommitted
out_loki: Check flb_ra_get_kv_pair for return code 0 (Code Review)
Signed-off-by: Greg Eales <[email protected]>
1 parent 47a9051 commit d1bd06b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/out_loki/loki.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ static void pack_maps(struct flb_loki *ctx,
458458

459459
/* try to get the value for the record accessor */
460460
if (flb_ra_get_kv_pair(kv->ra_key, *map, &start_key, &out_key, &out_val)
461-
!= -1) {
461+
== 0) {
462462

463463
/*
464464
* we require the value to be a map, or it doesn't make sense as

0 commit comments

Comments
 (0)