summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xfontsel.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/xfontsel.c b/xfontsel.c
index c9aa68b..9ab33d1 100644
--- a/xfontsel.c
+++ b/xfontsel.c
@@ -462,13 +462,16 @@ void GetFontNames(XtPointer closure)
SetNoFonts();
return;
}
+ count = matchingFontCount = numFonts;
numBadFonts = 0;
parseRec = XtNew(ParseRec);
- parseRec->fontNames = fontNames;
- parseRec->fonts = fonts;
- parseRec->num_fonts = count = matchingFontCount = numFonts;
- parseRec->fieldValues = fieldValues;
- parseRec->start = 0;
+ *parseRec = (ParseRec) {
+ .fontNames = fontNames,
+ .num_fonts = count,
+ .start = 0,
+ .fonts = fonts,
+ .fieldValues = fieldValues
+ };
/* this is bogus; the task should be responsible for quantizing...*/
while (count > PARSE_QUANTUM) {
ParseRec *prevRec = parseRec;