hyprpm: fix crash with enable without an arg

This commit is contained in:
Vaxry 2025-05-17 19:07:11 +02:00
parent bb5cd5b2dd
commit c19f383685
No known key found for this signature in database
GPG Key ID: 665806380871D640

View File

@ -142,7 +142,7 @@ int main(int argc, char** argv, char** envp) {
} else if (notify)
g_pPluginManager->notify(ICON_ERROR, 0, 10000, "[hyprpm] Couldn't update headers");
} else if (command[0] == "enable") {
if (ARGS.size() < 2) {
if (command.size() < 2) {
std::println(stderr, "{}", failureString("Not enough args for enable."));
return 1;
}