summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttfdump/libttf/post.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/ttfdump/libttf/post.c')
-rw-r--r--Build/source/texk/ttfdump/libttf/post.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Build/source/texk/ttfdump/libttf/post.c b/Build/source/texk/ttfdump/libttf/post.c
index c28e6593b72..ab8f13c227c 100644
--- a/Build/source/texk/ttfdump/libttf/post.c
+++ b/Build/source/texk/ttfdump/libttf/post.c
@@ -129,6 +129,10 @@ void ttfPrintPOST(FILE *fp,POSTPtr post)
void ttfFreePOST(POSTPtr post)
{
USHORT i, numGlyphs;
+
+ if (!post)
+ return;
+
switch (post->format)
{
case 0x00020000: