summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/Utility/Utility.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Utility/Utility.h b/include/Utility/Utility.h
index 0c1f16c..bd6019e 100644
--- a/include/Utility/Utility.h
+++ b/include/Utility/Utility.h
@@ -22,7 +22,7 @@
***********************************************************************/
inline bool fileExists(std::string file) {
- struct stat buffer;
+ struct stat buffer = {};
return (stat (file.c_str(), &buffer) == 0) ? true : false;
}
@@ -48,7 +48,7 @@ inline void exitHandler(int code) {
}
inline mode_t fileType(std::string file) {
- struct stat buf = { .st_dev = 0 };
+ struct stat buf = {};
if (stat (file.c_str(), &buf) == 0) {
return buf.st_mode & S_IFMT;
} else {