From 15d6ccf27f493381259565550a3bc15e28462367 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Fri, 17 Nov 2017 18:09:23 -0500 Subject: [PATCH] Mac font enumeration bug fix --- platform_mac/mac_4ed.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform_mac/mac_4ed.cpp b/platform_mac/mac_4ed.cpp index 434314ac..a2023a23 100644 --- a/platform_mac/mac_4ed.cpp +++ b/platform_mac/mac_4ed.cpp @@ -344,6 +344,10 @@ osx_get_loadable_fonts(Partition *part, Font_Setup_List *list){ char *name = fonts.names[i]; char *path = fonts.paths[i]; + if (name == 0 || path == 0){ + continue; + } + Temp_Memory reset= begin_temp_memory(part); Font_Setup *setup = push_array(part, Font_Setup, 1);