Bug 30566 - fcformat.c:interpret_enumerate() passes uninitialized idx to FcPatternGetLangSet()

This commit is contained in:
Behdad Esfahbod 2011-03-14 18:04:59 -03:00
parent ccc239b386
commit c76ed777dd
1 changed files with 1 additions and 1 deletions

View File

@ -610,7 +610,7 @@ interpret_enumerate (FcFormatContext *c,
{ {
FcLangSet *langset; FcLangSet *langset;
if (FcResultMatch == if (FcResultMatch ==
FcPatternGetLangSet (pat, os->objects[0], idx, &langset)) FcPatternGetLangSet (pat, os->objects[0], 0, &langset))
{ {
FcStrSet *ss; FcStrSet *ss;
if (!(ss = FcLangSetGetLangs (langset)) || if (!(ss = FcLangSetGetLangs (langset)) ||