summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/aws-c-common/source/uri.c
diff options
context:
space:
mode:
authorshadchin <[email protected]>2024-12-03 17:05:42 +0300
committershadchin <[email protected]>2024-12-03 18:21:15 +0300
commit6388569551ef4720bdcd3f07af43fedbecabc847 (patch)
tree279445f9bbee9b4f7b518fde918e49b4c00566c0 /contrib/restricted/aws/aws-c-common/source/uri.c
parent528eb8de83d25bf28f3d4a1202155523477ad4ac (diff)
Update contrib/restricted/aws/aws-c-common to 0.8.23
commit_hash:ee9e58d849fe0a4add15cf37c9a8899e88291b18
Diffstat (limited to 'contrib/restricted/aws/aws-c-common/source/uri.c')
-rw-r--r--contrib/restricted/aws/aws-c-common/source/uri.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/restricted/aws/aws-c-common/source/uri.c b/contrib/restricted/aws/aws-c-common/source/uri.c
index 1fafc9492e6..cefe57e8768 100644
--- a/contrib/restricted/aws/aws-c-common/source/uri.c
+++ b/contrib/restricted/aws/aws-c-common/source/uri.c
@@ -114,7 +114,8 @@ int aws_uri_init_from_builder_options(
buffer_size += 1;
for (size_t i = 0; i < query_len; ++i) {
struct aws_uri_param *uri_param_ptr = NULL;
- aws_array_list_get_at_ptr(options->query_params, (void **)&uri_param_ptr, i);
+ int result = aws_array_list_get_at_ptr(options->query_params, (void **)&uri_param_ptr, i);
+ AWS_FATAL_ASSERT(result == AWS_OP_SUCCESS);
/* 2 == 1 for '&' and 1 for '='. who cares if we over-allocate a little? */
buffer_size += uri_param_ptr->key.len + uri_param_ptr->value.len + 2;
}