fix: check if processName is NULL/empty to prevent segfaults
This commit is contained in:
1 parent
c0584cf465
commit
f333ede1f7
1 file changed
+3
@@ -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