| Index: content/plugin/plugin_main_linux.cc
|
| diff --git a/content/plugin/plugin_main_linux.cc b/content/plugin/plugin_main_linux.cc
|
| index 6bb9da7dd84012349bdadbfc0c68df26c9bb2a4c..24013408aedf66bd23320b6e93a04d48aeaf0f46 100644
|
| --- a/content/plugin/plugin_main_linux.cc
|
| +++ b/content/plugin/plugin_main_linux.cc
|
| @@ -29,8 +29,7 @@ void SignalHandler(int signum, siginfo_t* info, void* void_context) {
|
| // Not the problem we're interested in. Reraise the signal. We
|
| // need to be careful to handle threads etc. properly.
|
|
|
| - struct sigaction sa;
|
| - sa.sa_flags = 0;
|
| + struct sigaction sa = { { NULL } };
|
| sigemptyset(&sa.sa_mask);
|
| sa.sa_handler = SIG_DFL;
|
| sigaction(signum, &sa, NULL);
|
| @@ -61,8 +60,7 @@ void SignalHandler(int signum, siginfo_t* info, void* void_context) {
|
| // particular circumstance, emulating the instruction, and resuming.
|
| // This function registers the signal handler.
|
| void WorkaroundFlashLAHF() {
|
| - struct sigaction action;
|
| - memset(&action, 0, sizeof(action));
|
| + struct sigaction action = { { NULL } };
|
| action.sa_flags = SA_SIGINFO;
|
| action.sa_sigaction = &SignalHandler;
|
|
|
|
|