mirror of
https://github.com/elementary/gala.git
synced 2024-10-05 19:27:25 +03:00
notify: Check array-length before accessing it
This commit is contained in:
parent
a236621d1e
commit
112a261ba3
@ -637,7 +637,7 @@ namespace Gala.Plugins.Notify
|
||||
|
||||
return (app_name.down () == token
|
||||
|| token_executable == app_executable
|
||||
|| args[0] == token
|
||||
|| (args.length > 0 && args[0] == token)
|
||||
|| app_display_name.down ().contains (token));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user