mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Merge pull request #102 from NBonaparte/master
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