Unverified Commit c7d96dbf authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #5289 from dearblue/sockaddr_un

Initialize all area of `struct sockaddr_un`
parents 9d950818 8928bc2d
......@@ -80,7 +80,7 @@ mrb_io_test_io_setup(mrb_state *mrb, mrb_value self)
FILE *fp;
int i;
#if !defined(_WIN32) && !defined(_WIN64)
struct sockaddr_un sun0;
struct sockaddr_un sun0 = { 0 }; /* Initialize them all because it is environment dependent */
#endif
mrb_gv_set(mrb, mrb_intern_cstr(mrb, "$mrbtest_io_msg"), mrb_str_new_cstr(mrb, msg));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment