Skip to content

Commit aa8dd4d

Browse files
committed
...
1 parent 4cd14ae commit aa8dd4d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kitty/fontconfig.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ pattern_as_dict(FcPattern *pat) {
4444
type out; int n = 0; \
4545
list = PyList_New(0); \
4646
if (!list) goto exit; \
47-
while (get(pat, which, n, &out) == FcResultMatch) { \
47+
while (get(pat, which, n++, &out) == FcResultMatch) { \
4848
p = conv(out); if (p == NULL) goto exit; \
4949
if (PyList_Append(list, p) != 0) goto exit; \
5050
Py_CLEAR(p); \
51-
n++; \
5251
} \
5352
if (PyDict_SetItemString(ans, #name, list) != 0) goto exit; \
5453
Py_CLEAR(list); \

0 commit comments

Comments
 (0)