fix: use zeromemory for initialization (wtf)
Build / build (push) Failing after 2m36s

This commit is contained in:
2026-03-21 23:55:10 -03:00
parent 492677d5bb
commit f3020200a0
+5 -2
View File
@@ -13,6 +13,7 @@
#include <ctime>
#include <processthreadsapi.h>
#include <cstring>
std::string randomizeString(size_t length)
{
@@ -133,9 +134,11 @@ bool CertManager::GenerateCA()
Log::info("Generated new CA key and certificate files. Installing to Windows Root CA store automatically...");
STARTUPINFOA si = {0};
STARTUPINFOA si;
memset(&si, 0, sizeof(si));
si.cb = sizeof(si);
PROCESS_INFORMATION pi = {0};
PROCESS_INFORMATION pi;
memset(&pi, 0, sizeof(pi));
char cmd[] = "certutil.exe -user -addstore root ca_cert.pem";
if (CreateProcessA(NULL, cmd, NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, NULL, &si, &pi))
{