initialize lpMsgBuf

This commit is contained in:
Ruby Martin
2025-08-05 15:47:13 -06:00
parent 35ea769c9f
commit f5a4b13391

View File

@@ -1640,7 +1640,7 @@ static int StopMonitor(wolfSSL_CRL_mfd_t mfd)
#ifdef DEBUG_WOLFSSL #ifdef DEBUG_WOLFSSL
#define SHOW_WINDOWS_ERROR() do { \ #define SHOW_WINDOWS_ERROR() do { \
LPVOID lpMsgBuf; \ LPVOID lpMsgBuf = NULL; \
DWORD dw = GetLastError(); \ DWORD dw = GetLastError(); \
FormatMessageA( \ FormatMessageA( \
FORMAT_MESSAGE_ALLOCATE_BUFFER | \ FORMAT_MESSAGE_ALLOCATE_BUFFER | \