Zero initialize read_dds_data before loading DDS file

This commit is contained in:
Jake Turner
2023-08-25 10:20:28 +01:00
parent 7d8586cdd8
commit 788a0ca98f
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -493,7 +493,7 @@ RDResult IMG_CreateReplayDevice(RDCFile *rdc, IReplayDriver **driver)
{
FileIO::fseek64(f, 0, SEEK_SET);
StreamReader reader(f);
read_dds_data read_data;
read_dds_data read_data = {};
RDResult res = load_dds_from_file(&reader, read_data);
f = NULL;