1
0
Fork 0

Forgot to initiliaze a field. Thanks Mok

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4024
This commit is contained in:
Peter Veenstra 2017-06-19 09:09:59 +00:00
parent df0fa99d88
commit dc5b586c28

View file

@ -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];