From 8310b4ef743129cf591e8ceec3f222097179c856 Mon Sep 17 00:00:00 2001 From: zvon Date: Thu, 26 Sep 2019 21:58:41 +0200 Subject: [PATCH] Make sure FSLib::Directory variables are initialized --- filesystem.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/filesystem.hpp b/filesystem.hpp index a12aaea..9eb0a73 100644 --- a/filesystem.hpp +++ b/filesystem.hpp @@ -79,11 +79,11 @@ public: private: #ifndef _WIN32 - DIR *d; - const struct dirent *current_entry; + DIR *d{}; + const struct dirent *current_entry{}; #else - HANDLE hFind; - WIN32_FIND_DATA data; + HANDLE hFind{}; + WIN32_FIND_DATA data{}; bool ended{ false }; #endif };