mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 02:23:37 +00:00
localspl: Avoid uninitialized variable in fill_builtin_form_info.
As diagnosed by GCC 13: dlls/localspl/provider.c: In function ‘fill_builtin_form_info’: dlls/localspl/provider.c:3045:16: warning: ‘res_len’ may be used uninitialized [-Wmaybe-uninitialized] 3045 | if (res_len) | ^
This commit is contained in:
parent
03aa9e13e7
commit
9bf9b20c53
|
@ -3008,7 +3008,7 @@ static void fill_builtin_form_info( BYTE **base, WCHAR **strings, const struct b
|
|||
DWORD size, DWORD *used )
|
||||
{
|
||||
FORM_INFO_2W *info = *(FORM_INFO_2W**)base;
|
||||
DWORD name_len = wcslen( form->name ) + 1, res_len, keyword_len, total_size;
|
||||
DWORD name_len = wcslen( form->name ) + 1, res_len = 0, keyword_len, total_size;
|
||||
static const WCHAR dll_name[] = L"localspl.dll";
|
||||
const WCHAR *resource;
|
||||
|
||||
|
|
Loading…
Reference in a new issue