summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwalker@codeaurora.org <rwalker@codeaurora.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-06 19:49:17 +0000
committerrwalker@codeaurora.org <rwalker@codeaurora.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-06 19:49:17 +0000
commitacf9a3720cf8a6a85d8820a7801abbad802129a0 (patch)
treeea4fd6e05ef58a333cae7e2f9cf414453707caeb
parent334eb3483be74eb0f2cd8f283239ab52857cc466 (diff)
downloadchromium_src-acf9a3720cf8a6a85d8820a7801abbad802129a0.zip
chromium_src-acf9a3720cf8a6a85d8820a7801abbad802129a0.tar.gz
chromium_src-acf9a3720cf8a6a85d8820a7801abbad802129a0.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@204556 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--AUTHORS1
-rw-r--r--base/linux_util.cc2
-rw-r--r--net/base/net_util.cc2
3 files changed, 3 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index 7c7d863..e6f829c 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -264,3 +264,4 @@ Teodora Novkovic <teodora.petrovic@gmail.com>
Joseph Gentle <josephg@gmail.com>
Paul Lind <paul.lind@imgtec.com>
Chaobin Zhang <zhchbin@gmail.com>
+Code Aurora Forum <*@codeaurora.org>
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) {
diff --git a/net/base/net_util.cc b/net/base/net_util.cc
index c5f5673..bf7fbb8 100644
--- a/net/base/net_util.cc
+++ b/net/base/net_util.cc
@@ -267,7 +267,7 @@ bool IsComponentCoveredByLang(const icu::UnicodeSet& component_characters,
const std::string& lang) {
CR_DEFINE_STATIC_LOCAL(
const icu::UnicodeSet, kASCIILetters, ('a', 'z'));
- icu::UnicodeSet* lang_set;
+ icu::UnicodeSet* lang_set = NULL;
// We're called from both the UI thread and the history thread.
{
base::AutoLock lock(g_lang_set_lock.Get());