diff --git a/src/hardware/hardware.cpp b/src/hardware/hardware.cpp index 26fdfe85..14958c3a 100644 --- a/src/hardware/hardware.cpp +++ b/src/hardware/hardware.cpp @@ -361,7 +361,7 @@ void CAPTURE_AddImage(Bitu width, Bitu height, Bitu bpp, Bitu pitch, Bitu flags, } #ifdef PNG_TEXT_SUPPORTED int fields = 1; - png_text text[1]; + png_text text[1] = {}; const char* text_s = "DOSBox " VERSION; size_t strl = strlen(text_s); char* ptext_s = new char[strl + 1];