notify: Check array-length before accessing it

This commit is contained in:
Felipe Escoto 2017-02-20 11:19:06 +01:00 committed by Rico Tzschichholz
parent a236621d1e
commit 112a261ba3

View File

@ -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));
}
}