mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-24 06:24:19 +02:00
Fix bug on startup
This commit is contained in:
parent
989438a1cb
commit
fd9c301c4d
1 changed files with 1 additions and 1 deletions
|
|
@ -286,7 +286,7 @@ main(int argc, char *argv[]) {
|
|||
server.modes[1] = strdup("root");
|
||||
server.modes[2] = strdup("resize");
|
||||
server.modes[3] = NULL;
|
||||
if(!server.modes[0] || !server.modes[1] || server.modes[2]) {
|
||||
if(server.modes[0] == NULL || server.modes[1] == NULL || server.modes[2] == NULL) {
|
||||
wlr_log(WLR_ERROR, "Error allocating default modes");
|
||||
goto end;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue