From 826a654c95c962c88f7eb803b50f6fd51504d273 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Tue, 29 Dec 2015 12:42:08 +0100
Subject: [PATCH] fs/DirectoryReader: use C++11 initializer

---
 src/fs/DirectoryReader.hxx | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/fs/DirectoryReader.hxx b/src/fs/DirectoryReader.hxx
index ce27d2b9b..88af5b184 100644
--- a/src/fs/DirectoryReader.hxx
+++ b/src/fs/DirectoryReader.hxx
@@ -34,7 +34,7 @@
 class DirectoryReader {
 	const HANDLE handle;
 	WIN32_FIND_DATA data;
-	bool first;
+	bool first = true;
 
 	class MakeWildcardPath {
 		PathTraitsFS::pointer path;
@@ -63,8 +63,8 @@ public:
 	 * Creates new directory reader for the specified #dir.
 	 */
 	explicit DirectoryReader(Path dir)
-		:handle(FindFirstFile(MakeWildcardPath(dir.c_str()), &data)),
-		 first(true) {}
+		:handle(FindFirstFile(MakeWildcardPath(dir.c_str()), &data)) {
+	}
 
 	DirectoryReader(const DirectoryReader &other) = delete;
 	DirectoryReader &operator=(const DirectoryReader &other) = delete;
@@ -113,14 +113,14 @@ public:
  */
 class DirectoryReader {
 	DIR *const dirp;
-	dirent *ent;
+	dirent *ent = nullptr;
+
 public:
 	/**
 	 * Creates new directory reader for the specified #dir.
 	 */
 	explicit DirectoryReader(Path dir)
-		: dirp(opendir(dir.c_str())),
-		  ent(nullptr) {
+		:dirp(opendir(dir.c_str())) {
 	}
 
 	DirectoryReader(const DirectoryReader &other) = delete;