tk/tk-8.6.7-no-fonts-fix.patch
chengguipeng 90eb7e63c5 tk: Update to 8.6.10.
Signed-off-by: chengguipeng <chengguipeng1@huawei.com>
2020-07-30 16:28:44 +08:00

14 lines
326 B
Diff

diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index cce59a8..78df47a 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -271,7 +271,7 @@ InitFont(
*/
set = FcFontSort(0, pattern, FcTrue, NULL, &result);
- if (!set) {
+ if (!set || set->nfont == 0) {
ckfree(fontPtr);
return NULL;
}