freetype: Simplify path check
authorMarvin Scholz <epirat07@gmail.com>
Sat, 17 Jun 2017 15:05:13 +0000 (17:05 +0200)
committerMarvin Scholz <epirat07@gmail.com>
Mon, 19 Jun 2017 12:32:37 +0000 (14:32 +0200)
modules/text_renderer/freetype/fonts/darwin.c

index 06dec79..a3ea832 100644 (file)
@@ -172,12 +172,8 @@ const vlc_family_t *CoreText_GetFamily(filter_t *p_filter, const char *psz_famil
         path = getPathForFontDescription(iter);
 
         /* check if the path is empty, which can happen in rare circumstances */
-        if (path != NULL) {
-            if (strcmp("", path) == 0) {
-                FREENULL(path);
-                continue;
-            }
-        } else {
+        if (path == NULL || *path == '\0') {
+            FREENULL(path);
             continue;
         }