[win32] RP_ShellPropSheetExt: Initialize str_nl to 0.

Otherwise, if !str and !field.data.str, this ends up remaining
uninitialized, which could cause shenanigans to occur.

This scenario is unlikely, though...
This commit is contained in:
David Korth 2020-07-01 00:18:38 -04:00
parent 7b955ef53c
commit 9e57292814

View File

@ -687,7 +687,7 @@ int RP_ShellPropSheetExt_Private::initString(_In_ HWND hDlg, _In_ HWND hWndTab,
// If string data wasn't specified, get the RFT_STRING data
// from the RomFields::Field object.
int lf_count = 0;
tstring str_nl;
tstring str_nl = 0;
if (!str) {
if (field.type != RomFields::RFT_STRING)
return 0;