Commit 4794b7f4 authored by motek@chromium.org's avatar motek@chromium.org

Added variable initialization (valgrind complains).

This fix should make valgrind bots green (or at least remove one of sources of unhappiness). 

BUG=233153
TBR=thakis@chromium.org

Review URL: https://chromiumcodereview.appspot.com/13811056

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194937 0039d316-1c4b-4281-b951-d872f2087c98
parent 13da6764
...@@ -470,7 +470,7 @@ TEST_F(ThumbnailContentAnalysisTest, CreateRetargettedThumbnailImage) { ...@@ -470,7 +470,7 @@ TEST_F(ThumbnailContentAnalysisTest, CreateRetargettedThumbnailImage) {
EXPECT_LT(result.height(), image_size.height()); EXPECT_LT(result.height(), image_size.height());
// TODO(motek): this test is problematic/flaky on Win7. Investigate. // TODO(motek): this test is problematic/flaky on Win7. Investigate.
#if !defined(OS_WIN) #if !defined(OS_WIN)
int histogram[256]; int histogram[256] = {};
color_utils::BuildLumaHistogram(result, histogram); color_utils::BuildLumaHistogram(result, histogram);
int non_zero_color_count = std::count_if( int non_zero_color_count = std::count_if(
histogram, histogram + 256, std::bind2nd(std::greater<int>(), 0)); histogram, histogram + 256, std::bind2nd(std::greater<int>(), 0));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment