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

Unified Diff: chrome/browser/thumbnails/content_analysis_unittest.cc

Issue 13811056: Added variable initialization (valgrind complains). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed the nit. Created 7 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/thumbnails/content_analysis_unittest.cc
diff --git a/chrome/browser/thumbnails/content_analysis_unittest.cc b/chrome/browser/thumbnails/content_analysis_unittest.cc
index f85d205978bc727e208a613e3656c0a688394399..6c695e43b78a34cc57124d4a1714c821b900965f 100644
--- a/chrome/browser/thumbnails/content_analysis_unittest.cc
+++ b/chrome/browser/thumbnails/content_analysis_unittest.cc
@@ -470,7 +470,7 @@ TEST_F(ThumbnailContentAnalysisTest, CreateRetargettedThumbnailImage) {
EXPECT_LT(result.height(), image_size.height());
// TODO(motek): this test is problematic/flaky on Win7. Investigate.
#if !defined(OS_WIN)
- int histogram[256];
+ int histogram[256] = {};
color_utils::BuildLumaHistogram(result, histogram);
int non_zero_color_count = std::count_if(
histogram, histogram + 256, std::bind2nd(std::greater<int>(), 0));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698