Don't show salt in debugging message if salt is null
This commit is contained in:
parent
91114d18c3
commit
faec0b51db
|
@ -556,11 +556,11 @@ FcConfigAddFontDir (FcConfig *config,
|
||||||
{
|
{
|
||||||
if (m)
|
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)
|
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);
|
return FcStrSetAddFilenamePairWithSalt (config->fontDirs, d, m, salt);
|
||||||
|
|
Loading…
Reference in New Issue