git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73bbea4
)
freetype: Simplify path check
author
Marvin Scholz
<epirat07@gmail.com>
Sat, 17 Jun 2017 15:05:13 +0000
(17:05 +0200)
committer
Marvin Scholz
<epirat07@gmail.com>
Mon, 19 Jun 2017 12:32:37 +0000
(14:32 +0200)
modules/text_renderer/freetype/fonts/darwin.c
patch
|
blob
|
history
diff --git
a/modules/text_renderer/freetype/fonts/darwin.c
b/modules/text_renderer/freetype/fonts/darwin.c
index
06dec79
..
a3ea832
100644
(file)
--- a/
modules/text_renderer/freetype/fonts/darwin.c
+++ b/
modules/text_renderer/freetype/fonts/darwin.c
@@
-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;
}