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

Unified Diff: base/dir_reader_linux.h

Issue 7216031: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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
Index: base/dir_reader_linux.h
diff --git a/base/dir_reader_linux.h b/base/dir_reader_linux.h
index 2b8333475f4e164848c99dd80a07545d781093f6..4187b4ecd35235dbad54285c17c3d2d20ce62c4e 100644
--- a/base/dir_reader_linux.h
+++ b/base/dir_reader_linux.h
@@ -33,6 +33,7 @@ class DirReaderLinux {
: fd_(open(directory_path, O_RDONLY | O_DIRECTORY)),
offset_(0),
size_(0) {
+ memset(buf_, 0, sizeof(buf_));
}
~DirReaderLinux() {

Powered by Google App Engine
This is Rietveld 408576698