diff --git a/src/Win/LogConsole.cpp b/src/Win/LogConsole.cpp index 690aa86..31a7d64 100644 --- a/src/Win/LogConsole.cpp +++ b/src/Win/LogConsole.cpp @@ -12,11 +12,11 @@ namespace hgl { private: - DWORD result; + DWORD result=0; - void *console_handle; + void *console_handle=nullptr; - u16char buf[LOG_BUF_SIZE]; + u16char buf[LOG_BUF_SIZE]{}; public: diff --git a/src/Win/LogDialog.cpp b/src/Win/LogDialog.cpp index cc24bde..72b4edb 100644 --- a/src/Win/LogDialog.cpp +++ b/src/Win/LogDialog.cpp @@ -10,7 +10,7 @@ namespace hgl { UTF16String name; - u16char buf[4096]; + u16char buf[4096]{}; public: