From b5cd32126314ff1b6514be8eafe21d507bb3fece Mon Sep 17 00:00:00 2001 From: Simon Hartcher Date: Tue, 8 Apr 2025 11:39:19 +1000 Subject: [PATCH] fix(TestSetup): undefined behaviour --- src/aws.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/aws.zig b/src/aws.zig index 2738a1e..e776ce3 100644 --- a/src/aws.zig +++ b/src/aws.zig @@ -1702,7 +1702,7 @@ const TestSetup = struct { request_options: TestOptions, server_thread: std.Thread = undefined, creds: aws_auth.Credentials = undefined, - client: *Client = undefined, + client: Client = undefined, started: bool = false, const Self = @This(); @@ -1738,8 +1738,8 @@ const TestSetup = struct { null, ); aws_creds.static_credentials = self.creds; - var client = Client.init(self.allocator, .{}); - self.client = &client; + const client = Client.init(self.allocator, .{}); + self.client = client; return .{ .region = "us-west-2", .client = client,