diff --git a/src/node_stdio.cc b/src/node_stdio.cc index bfeaff4771..805de707c3 100644 --- a/src/node_stdio.cc +++ b/src/node_stdio.cc @@ -207,8 +207,7 @@ void Stdio::Initialize(v8::Handle target) { NODE_SET_METHOD(target, "setRawMode", SetRawMode); NODE_SET_METHOD(target, "getColumns", GetColumns); - struct sigaction sa; - bzero(&sa, sizeof(sa)); + struct sigaction sa = {0}; sa.sa_handler = HandleSIGCONT; sigaction(SIGCONT, &sa, NULL); }