Skip to content

Commit

Permalink
from array instead
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Jan 27, 2025
1 parent e2f28f3 commit 22c8968
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/uri_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,7 @@ AWS_TEST_CASE(uri_port_too_large_parse, s_test_uri_port_too_large_parse);
static int s_test_uri_single_colon_parse(struct aws_allocator *allocator, void *ctx) {
(void)ctx;
const char *str_uri = ":";

struct aws_byte_cursor uri_csr = aws_byte_cursor_from_c_str(str_uri);
struct aws_byte_cursor uri_csr = aws_byte_cursor_from_array(str_uri, 1);
struct aws_uri uri;
ASSERT_SUCCESS(aws_uri_init_parse(&uri, allocator, &uri_csr));
aws_uri_clean_up(&uri);
Expand Down

0 comments on commit 22c8968

Please sign in to comment.