Skip to content

Commit b679185

Browse files
committed
Logo: don't try to find files named -
1 parent 6bbed12 commit b679185

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/logo/logo.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,9 @@ static void updateLogoPath(void)
473473
if(ffPathExists(options->source.chars, FF_PATHTYPE_FILE))
474474
return;
475475

476+
if (ffStrbufEqualS(&options->source, "-")) // stdin
477+
return;
478+
476479
FF_STRBUF_AUTO_DESTROY fullPath = ffStrbufCreate();
477480
if (ffPathExpandEnv(options->source.chars, &fullPath) && ffPathExists(fullPath.chars, FF_PATHTYPE_FILE))
478481
{

0 commit comments

Comments
 (0)