Skip to content
Snippets Groups Projects
Commit 082019e7 authored by Lars Bilke's avatar Lars Bilke
Browse files

[BL] Initialization fix.

parent 98348241
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ namespace BaseLib ...@@ -25,7 +25,7 @@ namespace BaseLib
*/ */
bool IsFileExisting(const std::string &strFilename) bool IsFileExisting(const std::string &strFilename)
{ {
struct stat buffer; struct stat buffer {};
return (stat (strFilename.c_str(), &buffer) == 0); return (stat (strFilename.c_str(), &buffer) == 0);
} }
...@@ -35,7 +35,7 @@ double swapEndianness(double const& v) ...@@ -35,7 +35,7 @@ double swapEndianness(double const& v)
{ {
double v; double v;
char c[sizeof(double)]; char c[sizeof(double)];
} a, b; } a {}, b {};
a.v = v; a.v = v;
for (unsigned short i = 0; i < sizeof(double)/2; i++) for (unsigned short i = 0; i < sizeof(double)/2; i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment