mirror of
https://github.com/labwc/labwc.git
synced 2026-05-02 06:47:03 -04:00
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:
parent
998fd80737
commit
def6ff22d3
1 changed files with 1 additions and 2 deletions
|
|
@ -108,7 +108,7 @@ spawn_sync_no_shell(char const *command)
|
||||||
switch (child) {
|
switch (child) {
|
||||||
case -1:
|
case -1:
|
||||||
wlr_log(WLR_ERROR, "unable to fork()");
|
wlr_log(WLR_ERROR, "unable to fork()");
|
||||||
goto out;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
reset_signals_and_limits();
|
reset_signals_and_limits();
|
||||||
execvp(argv[0], argv);
|
execvp(argv[0], argv);
|
||||||
|
|
@ -117,7 +117,6 @@ spawn_sync_no_shell(char const *command)
|
||||||
waitpid(child, NULL, 0);
|
waitpid(child, NULL, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
out:
|
|
||||||
g_strfreev(argv);
|
g_strfreev(argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue