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

Unified Diff: base/file_util_win.cc

Issue 8965054: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 9 years 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 | chrome/browser/autocomplete_history_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_win.cc
diff --git a/base/file_util_win.cc b/base/file_util_win.cc
index a6720a576224f6d1d5573cefab5d97665a4dcefb..31d2f05d8dca7d06e29d1604472e5ed8507c1748 100644
--- a/base/file_util_win.cc
+++ b/base/file_util_win.cc
@@ -831,6 +831,7 @@ FileEnumerator::FileEnumerator(const FilePath& root_path,
find_handle_(INVALID_HANDLE_VALUE) {
// INCLUDE_DOT_DOT must not be specified if recursive.
DCHECK(!(recursive && (INCLUDE_DOT_DOT & file_type_)));
+ memset(&find_data_, 0, sizeof(find_data_));
pending_paths_.push(root_path);
}
@@ -845,6 +846,7 @@ FileEnumerator::FileEnumerator(const FilePath& root_path,
find_handle_(INVALID_HANDLE_VALUE) {
// INCLUDE_DOT_DOT must not be specified if recursive.
DCHECK(!(recursive && (INCLUDE_DOT_DOT & file_type_)));
+ memset(&find_data_, 0, sizeof(find_data_));
pending_paths_.push(root_path);
}
« no previous file with comments | « no previous file | chrome/browser/autocomplete_history_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698