comparison src/font-mgr.c @ 4809:0d3ccd5a2509

Initialize the result variable passed to FcFontMatch. See xemacs-patches message <870180fe1001071349i63d185bfu4906c5a4399407cd@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Thu, 07 Jan 2010 14:50:24 -0700
parents ca99a807b025
children b3ea9c582280
comparison
equal deleted inserted replaced
4808:53071486ff7a 4809:0d3ccd5a2509
1002 p = XFCPATTERN_PTR(pattern); 1002 p = XFCPATTERN_PTR(pattern);
1003 fcc = NILP (config) ? FcConfigGetCurrent () : XFCCONFIG_PTR (config); 1003 fcc = NILP (config) ? FcConfigGetCurrent () : XFCCONFIG_PTR (config);
1004 1004
1005 FcConfigSubstitute (fcc, p, FcMatchPattern); 1005 FcConfigSubstitute (fcc, p, FcMatchPattern);
1006 FcDefaultSubstitute (p); 1006 FcDefaultSubstitute (p);
1007 res = FcResultMatch;
1007 res_fcpat->fcpatPtr = FcFontMatch (fcc, p, &res); 1008 res_fcpat->fcpatPtr = FcFontMatch (fcc, p, &res);
1008 1009
1009 if (res_fcpat->fcpatPtr == NULL) 1010 if (res_fcpat->fcpatPtr == NULL)
1010 switch (res) { 1011 switch (res) {
1011 case FcResultNoMatch: 1012 case FcResultNoMatch: