diff --git a/BaseLib/FileTools.cpp b/BaseLib/FileTools.cpp
index bd04d8b0e2586a696d4f67b0ed588ff0bbdd7874..7ed7c38676ab0a6532b99ad8aab73964a091ff17 100644
--- a/BaseLib/FileTools.cpp
+++ b/BaseLib/FileTools.cpp
@@ -25,7 +25,7 @@ namespace BaseLib
  */
 bool IsFileExisting(const std::string &strFilename)
 {
-    struct stat buffer;
+    struct stat buffer {};
     return (stat (strFilename.c_str(), &buffer) == 0);
 }
 
@@ -35,7 +35,7 @@ double swapEndianness(double const& v)
     {
         double v;
         char c[sizeof(double)];
-    } a, b;
+    } a {}, b {};
 
     a.v = v;
     for (unsigned short i = 0; i < sizeof(double)/2; i++)