diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2021-03-26 02:24:33 +0200 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2021-04-29 03:18:15 +0300 |
commit | f9caed9af523079419f856b9eba79fbff762f9ed (patch) | |
tree | cb3a5e0774e6855b5ddabdf45da2dd2398ca99f9 | |
parent | a2663bc3b24925df64dd81d7391928294661b47e (diff) | |
download | libass-f9caed9af523079419f856b9eba79fbff762f9ed.tar.bz2 libass-f9caed9af523079419f856b9eba79fbff762f9ed.tar.xz |
coretext: don't call strcmp to check for empty string
-rw-r--r-- | libass/ass_coretext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_coretext.c b/libass/ass_coretext.c index 13f30d0..7bb34ac 100644 --- a/libass/ass_coretext.c +++ b/libass/ass_coretext.c @@ -143,7 +143,7 @@ static void process_descriptors(ASS_Library *lib, ASS_FontProvider *provider, int index = -1; char *path = get_font_file(fontd); - if (!path || strcmp("", path) == 0) { + if (!path || !*path) { // skip the font if the URL field in the font descriptor is empty free(path); continue; |