aboutsummaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
Diffstat (limited to 'x.c')
-rw-r--r--x.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/x.c b/x.c
index aa86b31..5828a3b 100644
--- a/x.c
+++ b/x.c
@@ -1243,15 +1243,10 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
1243 fontpattern = FcFontSetMatch(0, fcsets, 1, 1243 fontpattern = FcFontSetMatch(0, fcsets, 1,
1244 fcpattern, &fcres); 1244 fcpattern, &fcres);
1245 1245
1246 /* 1246 /* Allocate memory for the new cache entry. */
1247 * Allocate memory for the new cache entry.
1248 */
1249 if (frclen >= frccap) { 1247 if (frclen >= frccap) {
1250 frccap += 16; 1248 frccap += 16;
1251 if (!frc) 1249 frc = xrealloc(frc, frccap * sizeof(Fontcache));
1252 frc = xmalloc(frccap * sizeof(Fontcache));
1253 else
1254 frc = xrealloc(frc, frccap * sizeof(Fontcache));
1255 } 1250 }
1256 1251
1257 frc[frclen].font = XftFontOpenPattern(xw.dpy, 1252 frc[frclen].font = XftFontOpenPattern(xw.dpy,