Module: wine Branch: master Commit: fab4d1fd7fc2c39cc18d1751685fa3ce5d9a5b85 URL: https://gitlab.winehq.org/wine/wine/-/commit/fab4d1fd7fc2c39cc18d1751685fa3c...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Jan 27 10:28:34 2023 +0100
gdiplus: Initialize a variable to avoid a spurious compiler warning.
---
dlls/gdiplus/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index 03678623606..96d3c5630bc 100644 --- a/dlls/gdiplus/font.c +++ b/dlls/gdiplus/font.c @@ -1396,7 +1396,7 @@ static WCHAR *load_ttf_name_id( const BYTE *mem, DWORD_PTR size, DWORD id ) const tt_header *header; const tt_name_table *name_table; const tt_name_record *name_record; - DWORD pos, ofs, count; + DWORD pos, ofs = 0, count; int i, res, best_lang = 0, best_index = -1;
if (sizeof(tt_header) > size)