mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-01-04 06:46:27 +03:00
hyprctl: avoid .pop_back() on empty string
This commit is contained in:
parent
fb80cbe415
commit
9c00381dfc
@ -835,7 +835,8 @@ std::string dispatchSetCursor(std::string request) {
|
||||
std::string theme = "";
|
||||
for (size_t i = 1; i < vars.size() - 1; ++i)
|
||||
theme += vars[i] + " ";
|
||||
theme.pop_back();
|
||||
if (!theme.empty())
|
||||
theme.pop_back();
|
||||
|
||||
int size = 0;
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user