This commit is contained in:
Kovid Goyal 2020-12-17 11:30:37 +05:30
parent 4cd14aee42
commit aa8dd4ddf4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -44,11 +44,10 @@ pattern_as_dict(FcPattern *pat) {
type out; int n = 0; \
list = PyList_New(0); \
if (!list) goto exit; \
while (get(pat, which, n, &out) == FcResultMatch) { \
while (get(pat, which, n++, &out) == FcResultMatch) { \
p = conv(out); if (p == NULL) goto exit; \
if (PyList_Append(list, p) != 0) goto exit; \
Py_CLEAR(p); \
n++; \
} \
if (PyDict_SetItemString(ans, #name, list) != 0) goto exit; \
Py_CLEAR(list); \