Skip to content

Commit

Permalink
zero it out
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Oct 10, 2024
1 parent 7b70ee6 commit 24c5385
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ napi_value aws_napi_io_socket_options_new(napi_env env, napi_callback_info info)
}

struct aws_socket_options options;
AWS_ZERO_STRUCT(options);

uint32_t enum_value = 0;
if (napi_get_value_uint32(env, node_args[0], &enum_value) || enum_value > AWS_SOCKET_DGRAM) {
Expand Down

0 comments on commit 24c5385

Please sign in to comment.