Skip to content

Commit 88e4579

Browse files
committed
Fastfetch: fix segfaults with --show-errors and an invalid module
Fix fastfetch-cli#1055
1 parent 8f97e61 commit 88e4579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/printing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void ffPrintLogoAndKey(const char* moduleName, uint8_t moduleIndex, const FFModu
6464
if(!instance.config.display.pipe)
6565
{
6666
fputs(FASTFETCH_TEXT_MODIFIER_RESET, stdout);
67-
if (moduleArgs->outputColor.length)
67+
if (moduleArgs && moduleArgs->outputColor.length)
6868
ffPrintColor(&moduleArgs->outputColor);
6969
else if (instance.config.display.colorOutput.length)
7070
ffPrintColor(&instance.config.display.colorOutput);

0 commit comments

Comments
 (0)