fix: nullptr initialization

This commit is contained in:
2026-06-19 03:40:06 -03:00
parent a4b1e00eb8
commit 18bc9100c2
3 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -24,5 +24,5 @@ class CacheCleaner
std::unique_ptr<std::thread> _monitorThread;
std::string _cacheDir;
seallib::Logger* _log;
seallib::Logger* _log = nullptr;
};
+3 -3
View File
@@ -18,9 +18,9 @@
#define CREATE_NO_WINDOW 0x08000000
bool running = true;
TinyMITMProxy* proxy;
ProxyConfigurator* conf;
CacheCleaner* cleaner ;
TinyMITMProxy* proxy = nullptr;
ProxyConfigurator* conf = nullptr;
CacheCleaner* cleaner = nullptr;
BOOL WINAPI consoleHandler(DWORD dwType)
{
+5 -2
View File
@@ -1,6 +1,9 @@
#pragma once
#include <seallib/log.h>
namespace seallib
{
class Logger;
}
class ProxyConfigurator
{
@@ -12,5 +15,5 @@ class ProxyConfigurator
bool clearProxy();
private:
seallib::Logger* _log;
seallib::Logger* _log = nullptr;
};