Commit 9bf9b20c authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

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) | ^
parent 03aa9e13
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment