fix writing uninitialized data to banner cache (harmless)
This commit is contained in:
@@ -553,6 +553,8 @@ bool mySDL_SaveSurface( SDL_Surface *img, CString file )
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
SurfaceHeader h;
|
SurfaceHeader h;
|
||||||
|
memset( &h, 0, sizeof(h) );
|
||||||
|
|
||||||
h.height = img->h;
|
h.height = img->h;
|
||||||
h.width = img->w;
|
h.width = img->w;
|
||||||
h.pitch = img->pitch;
|
h.pitch = img->pitch;
|
||||||
|
|||||||
Reference in New Issue
Block a user