1
0
Fork 0
mirror of https://github.com/hyprwm/Hyprland synced 2025-03-02 13:02:08 +01:00

Fixed SEGFAULT when running hyprctl with only the -j option

This commit is contained in:
Daniel Gerblick 2022-07-15 15:39:39 -04:00
parent 6306d4dae3
commit db693ec7e5

View file

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