Skip to content

Commit 2ebd4ce

Browse files
committed
out_loki: Check flb_ra_get_kv_pair for return code 0 (Code Review)
Signed-off-by: Greg Eales <[email protected]>
1 parent 0f3085d commit 2ebd4ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/out_loki/loki.c

Lines changed: 1 addition & 1 deletion
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)