diff options
author | Daniel Gerblick <[email protected]> | 2022-07-15 15:39:39 -0400 |
---|---|---|
committer | Daniel Gerblick <[email protected]> | 2022-07-15 15:39:39 -0400 |
commit | db693ec7e590138517fe1b1f3ac0e409dbbea211 (patch) | |
tree | 1d399335a89ca14f406c81530dbed9e9842f971d /hyprctl | |
parent | 6306d4dae3fa221a6099e109c7faef60bac4fac5 (diff) | |
download | Hyprland-db693ec7e590138517fe1b1f3ac0e409dbbea211.tar.gz Hyprland-db693ec7e590138517fe1b1f3ac0e409dbbea211.zip |
Fixed SEGFAULT when running hyprctl with only the -j option
Diffstat (limited to 'hyprctl')
-rw-r--r-- | hyprctl/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index 92ab4f5e..b52d6d15 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -232,6 +232,11 @@ int main(int argc, char** argv) { fullRequest += ARGS[i] + " "; } + if (fullRequest.empty()) { + printf("%s\n", USAGE.c_str()); + return 1; + } + fullRequest.pop_back(); // remove trailing space fullRequest = fullArgs + "/" + fullRequest; |