Commit faec0b51 authored by Akira TAGOH's avatar Akira TAGOH

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

parent 91114d18
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment