Don't show salt in debugging message if salt is null

This commit is contained in:
Akira TAGOH 2019-04-04 05:04:17 +00:00
parent 91114d18c3
commit faec0b51db
1 changed files with 2 additions and 2 deletions

View File

@ -556,11 +556,11 @@ FcConfigAddFontDir (FcConfig *config,
{
if (m)
{
printf ("%s -> %s (salt: %s)\n", d, m, salt);
printf ("%s -> %s%s%s%s\n", d, m, salt ? " (salt: " : "", salt ? (const char *)salt : "", salt ? ")" : "");
}
else if (salt)
{
printf ("%s (salt: %s)\n", d, salt);
printf ("%s%s%s%s\n", d, salt ? " (salt: " : "", salt ? (const char *)salt : "", salt ? ")" : "");
}
}
return FcStrSetAddFilenamePairWithSalt (config->fontDirs, d, m, salt);