mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5289 from dearblue/sockaddr_un
Initialize all area of `struct sockaddr_un`
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user