From: Behdad Esfahbod Date: Mon, 14 Mar 2011 21:04:59 +0000 (-0300) Subject: Bug 30566 - fcformat.c:interpret_enumerate() passes uninitialized idx to FcPatternGet... X-Git-Tag: root-2~25 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c76ed777ddb03a70c5990ef439d8d97809d1ef92;p=fontconfig.git Bug 30566 - fcformat.c:interpret_enumerate() passes uninitialized idx to FcPatternGetLangSet() --- diff --git a/src/fcformat.c b/src/fcformat.c index 5198596..1368b71 100644 --- a/src/fcformat.c +++ b/src/fcformat.c @@ -610,7 +610,7 @@ interpret_enumerate (FcFormatContext *c, { FcLangSet *langset; if (FcResultMatch == - FcPatternGetLangSet (pat, os->objects[0], idx, &langset)) + FcPatternGetLangSet (pat, os->objects[0], 0, &langset)) { FcStrSet *ss; if (!(ss = FcLangSetGetLangs (langset)) ||