Skip to content

Commit

Permalink
filterx-json: eliminate unnecessary strlen() call
Browse files Browse the repository at this point in the history
Signed-off-by: László Várady <laszlo.varady@anno.io>
  • Loading branch information
MrAnno committed Oct 8, 2024
1 parent 54aae75 commit 826116f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/filterx/object-json.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ filterx_json_convert_json_to_object(FilterXObject *root_obj, FilterXWeakRef *roo
case json_type_int:
return filterx_integer_new(json_object_get_int64(jso));
case json_type_string:
return filterx_string_new(json_object_get_string(jso), -1);
return filterx_string_new(json_object_get_string(jso), json_object_get_string_len(jso));
case json_type_array:
return filterx_json_array_new_sub(json_object_get(jso),
filterx_weakref_get(root_container) ? : filterx_object_ref(root_obj));
Expand Down

0 comments on commit 826116f

Please sign in to comment.