mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
fix: check if processName is NULL/empty to prevent segfaults
This commit is contained in:
@@ -66,6 +66,9 @@ static void getSessionDesktop(FFWMDEResult* result)
|
||||
|
||||
static void applyPrettyNameIfWM(FFWMDEResult* result, const char* processName, ProtocolHint* protocolHint)
|
||||
{
|
||||
if(processName == NULL || *processName == '\0')
|
||||
return;
|
||||
|
||||
if(strcasecmp(processName, "kwin_wayland") == 0)
|
||||
{
|
||||
ffStrbufSetS(&result->wmPrettyName, "KWin");
|
||||
|
||||
Reference in New Issue
Block a user