mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 18:05:58 +01:00
Merge pull request #376 from dgerblick/hyprctl-json-segfault-fix
Fixed SEGFAULT when running hyprctl with only the -j option
This commit is contained in:
commit
069e3b2114
1 changed files with 5 additions and 0 deletions
|
@ -232,6 +232,11 @@ int main(int argc, char** argv) {
|
||||||
fullRequest += ARGS[i] + " ";
|
fullRequest += ARGS[i] + " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fullRequest.empty()) {
|
||||||
|
printf("%s\n", USAGE.c_str());
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
fullRequest.pop_back(); // remove trailing space
|
fullRequest.pop_back(); // remove trailing space
|
||||||
|
|
||||||
fullRequest = fullArgs + "/" + fullRequest;
|
fullRequest = fullArgs + "/" + fullRequest;
|
||||||
|
|
Loading…
Reference in a new issue