diff options
author | 2023-08-02 16:58:44 -0300 | |
---|---|---|
committer | 2023-08-02 12:58:44 -0700 | |
commit | d9f162ff954ffe46403b40dee3844568498799aa (patch) | |
tree | 0f4407bd293d49a7f990ca2ded6b98bdc0eca58a /src/bun.js/api/server.zig | |
parent | 9bbac35fd072d90cf77daf2dd085898145a57d62 (diff) | |
download | bun-d9f162ff954ffe46403b40dee3844568498799aa.tar.gz bun-d9f162ff954ffe46403b40dee3844568498799aa.tar.zst bun-d9f162ff954ffe46403b40dee3844568498799aa.zip |
clean declare structs (#3929)
Diffstat (limited to 'src/bun.js/api/server.zig')
-rw-r--r-- | src/bun.js/api/server.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bun.js/api/server.zig b/src/bun.js/api/server.zig index 10afa4ac1..195d2a3f3 100644 --- a/src/bun.js/api/server.zig +++ b/src/bun.js/api/server.zig @@ -169,8 +169,7 @@ pub const ServerConfig = struct { const log = Output.scoped(.SSLConfig, false); pub fn asUSockets(this_: ?SSLConfig) uws.us_bun_socket_context_options_t { - var ctx_opts: uws.us_bun_socket_context_options_t = undefined; - @memset(@as([*]u8, @ptrCast(&ctx_opts))[0..@sizeOf(uws.us_bun_socket_context_options_t)], 0); + var ctx_opts: uws.us_bun_socket_context_options_t = .{}; if (this_) |ssl_config| { if (ssl_config.key_file_name != null) |