Logo: don't try to find files named -

This commit is contained in:
李通洲
2025-04-03 22:42:15 +08:00
parent 6bbed12083
commit b679185c87
+3
View File
@@ -473,6 +473,9 @@ static void updateLogoPath(void)
if(ffPathExists(options->source.chars, FF_PATHTYPE_FILE))
return;
if (ffStrbufEqualS(&options->source, "-")) // stdin
return;
FF_STRBUF_AUTO_DESTROY fullPath = ffStrbufCreate();
if (ffPathExpandEnv(options->source.chars, &fullPath) && ffPathExists(fullPath.chars, FF_PATHTYPE_FILE))
{