From fe1ad693e43cd607290474645a2d1a8a04a57a9e Mon Sep 17 00:00:00 2001 From: DmitriyMusatkin Date: Thu, 18 Jul 2024 10:11:07 -0700 Subject: [PATCH] build fix --- source/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/json.c b/source/json.c index d3f8906d9..2f1630ea2 100644 --- a/source/json.c +++ b/source/json.c @@ -156,7 +156,7 @@ bool aws_json_value_has_key_c_str(const struct aws_json_value *object, const cha int aws_json_value_remove_from_object(struct aws_json_value *object, struct aws_byte_cursor key) { struct aws_string *tmp = aws_string_new_from_cursor(s_aws_json_module_allocator, &key); - int result = aws_json_value_remove_from_object_c_str(object, aws_string_c_str(key)); + int result = aws_json_value_remove_from_object_c_str(object, aws_string_c_str(tmp)); aws_string_destroy_secure(tmp); return result;