Merge pull request #102 from NBonaparte/master

fix: check if `processName` is NULL/empty to prevent segfaults
This commit is contained in:
Linus Dierheimer
2021-11-01 12:32:33 +01:00
committed by GitHub
+3
View File
@@ -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");