session: drop goto label from spawn_sync_no_shell

Replace goto out with break since g_strfreev follows the switch directly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jos Dehaes 2026-04-29 14:38:05 +02:00 committed by Johan Malm
parent 998fd80737
commit def6ff22d3

View file

@ -108,7 +108,7 @@ spawn_sync_no_shell(char const *command)
switch (child) {
case -1:
wlr_log(WLR_ERROR, "unable to fork()");
goto out;
break;
case 0:
reset_signals_and_limits();
execvp(argv[0], argv);
@ -117,7 +117,6 @@ spawn_sync_no_shell(char const *command)
waitpid(child, NULL, 0);
break;
}
out:
g_strfreev(argv);
}