From 7dc527887927cb0f3b2e41ccc2913ff57d3d820d Mon Sep 17 00:00:00 2001
From: Robin Watts <robin.watts@artifex.com>
Date: Thu, 6 Oct 2016 11:56:24 +0100
Subject: Squash compiler warning.

font->name can never be NULL as it is an array.
---
 source/fitz/font.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'source/fitz')

diff --git a/source/fitz/font.c b/source/fitz/font.c
index b22781e4..c5e6503e 100644
--- a/source/fitz/font.c
+++ b/source/fitz/font.c
@@ -1545,9 +1545,7 @@ fz_encode_character_with_fallback(fz_context *ctx, fz_font *user_font, int unico
 
 const char *fz_font_name(fz_font *font)
 {
-	if (font == NULL || font->name == NULL)
-		return "";
-	return font->name;
+	return font ? font->name : "";
 }
 
 fz_buffer **fz_font_t3_procs(fz_font *font)
-- 
cgit v1.2.3