From 986bbeebb39b0fef66bfd3b2a1547ff06d00208f Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Mon, 25 Jul 2022 11:00:07 +0200 Subject: [PATCH] Don't segfault if invalid structure is given #204 --- src/fastfetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastfetch.c b/src/fastfetch.c index 44ee9109e..5648e46f8 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -1360,7 +1360,7 @@ static void parseStructureCommand(FFinstance* instance, FFdata* data, const char else if(strcasecmp(line, "opencl") == 0) ffPrintOpenCL(instance); else - ffPrintError(instance, line, 0, NULL, NULL, 0, ""); + ffPrintErrorString(instance, line, 0, NULL, NULL, ""); } int main(int argc, const char** argv)