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

Unified Diff: base/process_util.cc

Issue 7216031: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 months 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
Index: base/process_util.cc
diff --git a/base/process_util.cc b/base/process_util.cc
index 462dcbf3f3fd2a5e9aab1d429cadab187713db6d..b64e21db1858cc7dd2fdde794e7ea3032296ef9c 100644
--- a/base/process_util.cc
+++ b/base/process_util.cc
@@ -7,7 +7,7 @@
namespace base {
#if defined(OS_POSIX)
-ProcessEntry::ProcessEntry() {}
+ProcessEntry::ProcessEntry() :pid_(0), ppid_(0), gid_(0) {}
vandebo (ex-Chrome) 2011/06/21 22:34:44 nit: :<space>pid_
ProcessEntry::~ProcessEntry() {}
#endif

Powered by Google App Engine
This is Rietveld 408576698