summaryrefslogtreecommitdiffstats
path: root/base/linux_util.cc
diff options
context:
space:
mode:
authorrwalker@codeaurora.org <rwalker@codeaurora.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-06 18:58:44 +0000
committerrwalker@codeaurora.org <rwalker@codeaurora.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-06 18:58:44 +0000
commit42b1fe7c2fd4a43bc4ba16d53dc7c5a04bf8fc8c (patch)
treee594eda526a1f1eb64fadfb32e401c1e3b723a02 /base/linux_util.cc
parenta90fac760d0633fcc57f5d32e1f71281a3559154 (diff)
downloadchromium_src-42b1fe7c2fd4a43bc4ba16d53dc7c5a04bf8fc8c.zip
chromium_src-42b1fe7c2fd4a43bc4ba16d53dc7c5a04bf8fc8c.tar.gz
chromium_src-42b1fe7c2fd4a43bc4ba16d53dc7c5a04bf8fc8c.tar.bz2
Fix errors when building android with coverage=1
Android builds with coverage=1 fail due to uninitialized variable warnings in base/linux_util.cc and base/net/net_util.cc BUG=245467 Review URL: https://chromiumcodereview.appspot.com/16077010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204547 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/linux_util.cc')
-rw-r--r--base/linux_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/linux_util.cc b/base/linux_util.cc
index 660ea19..84f2028 100644
--- a/base/linux_util.cc
+++ b/base/linux_util.cc
@@ -231,7 +231,7 @@ bool FindProcessHoldingSocket(pid_t* pid_out, ino_t socket_inode) {
continue;
}
- ino_t fd_inode;
+ ino_t fd_inode = static_cast<ino_t>(-1);
if (ProcPathGetInode(&fd_inode, buf)) {
if (fd_inode == socket_inode) {
if (already_found) {