Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1093)

Unified Diff: content/plugin/plugin_main_linux.cc

Issue 9006028: Coverity fixes for uninitialized vars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing braces Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/public/common/show_desktop_notification_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | content/public/common/show_desktop_notification_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698