From dc5b586c2823f0658add0fa1474bbfbd42ae0498 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 19 Jun 2017 09:09:59 +0000 Subject: [PATCH] Forgot to initiliaze a field. Thanks Mok Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4024 --- src/hardware/hardware.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];