From dcb4cd400fb44172872a20ba54baa011d748b61d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 19 Aug 2019 11:35:37 -0700 Subject: [PATCH] Minor --- src/hb-font.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hb-font.cc b/src/hb-font.cc index 3809a5699..dc48df80a 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -1390,9 +1390,7 @@ hb_font_create_sub_font (hb_font_t *parent) font->ptem = parent->ptem; font->num_coords = parent->num_coords; - if (!font->num_coords) - font->coords = nullptr; - else + if (font->num_coords) { unsigned int size = parent->num_coords * sizeof (parent->coords[0]); font->coords = (int *) malloc (size);