Commit 79d8ed48 authored by Bernhard Übelacker's avatar Bernhard Übelacker Committed by Alexandre Julliard

gdi32: Avoid crash by initializing variable font_set.

If the call pFcStrListNext returns NULL the loop is never entered and the variable font_set never gets written, leading to a crash cleaning up font_set by pFcFontSetDestroy. Signed-off-by: 's avatarBernhard Übelacker <bernhardu@mailbox.org> Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarRémi Bernon <rbernon@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 9a317e5c
......@@ -1468,7 +1468,7 @@ static void init_fontconfig(void)
static void fontconfig_add_fonts_from_dir_list( FcConfig *config, FcStrList *dir_list, FcStrSet *done_set, DWORD flags )
{
const FcChar8 *dir;
FcFontSet *font_set;
FcFontSet *font_set = NULL;
FcStrList *subdir_list = NULL;
FcStrSet *subdir_set = NULL;
FcCache *cache = NULL;
......
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