Skip to content

Commit 0b2fa3d

Browse files
committed
filter-modify: Additional commentary
Signed-off-by: Nigel Stewart <[email protected]>
1 parent 6986985 commit 0b2fa3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/filter_modify/modify.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,8 @@ static inline int apply_rule_UTF8(msgpack_packer * packer,
11811181
msgpack_pack_map(packer, map->via.map.size);
11821182
for (i = 0; i < map->via.map.size; i++) {
11831183
msgpack_pack_object(packer, map->via.map.ptr[i].key);
1184+
1185+
/* Do UTF8 encoding for this value? */
11841186
if (map->via.map.ptr[i].val.type == MSGPACK_OBJECT_STR &&
11851187
kv_key_matches_str_rule_key(&map->via.map.ptr[i], rule)) {
11861188
size_t size = 0;
@@ -1216,7 +1218,6 @@ static inline int apply_rule_UTF8(msgpack_packer * packer,
12161218
free(buffer);
12171219
}
12181220
}
1219-
12201221
}
12211222
msgpack_pack_object(packer, map->via.map.ptr[i].val);
12221223
}

0 commit comments

Comments
 (0)