Don't call unlink_dirs if basedir is null

This commit is contained in:
Akira TAGOH 2018-11-30 07:12:21 +00:00
parent a57647e155
commit c44fda28e1
1 changed files with 2 additions and 1 deletions

View File

@ -295,7 +295,8 @@ main (void)
bail:
fprintf (stderr, "Cleaning up\n");
unlink_dirs (basedir);
if (basedir)
unlink_dirs (basedir);
if (fontdir)
FcStrFree (fontdir);
if (cachedir)