From 3df39f53aa70a478263e50d648dcf17e0ee7ffeb Mon Sep 17 00:00:00 2001 From: "Jonathan M. Henson" Date: Wed, 11 Oct 2023 17:54:03 -0700 Subject: [PATCH] Sorry about that msvc. good catch. --- source/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/file.c b/source/file.c index e29458146..050d9cc62 100644 --- a/source/file.c +++ b/source/file.c @@ -70,7 +70,7 @@ int aws_byte_buf_init_from_file(struct aws_byte_buf *out_buf, struct aws_allocat size_t allocation_size = (size_t)len64 + 1; aws_byte_buf_init(out_buf, alloc, allocation_size); - size_t read = -1; + size_t read = 0; size_t total_read = 0; do { if (total_read == out_buf->capacity) {