mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-04 20:24:23 +02:00
fix(pty): initialize exit_code to 0
Uninitialized exit_code variable was causing tests to fail on x86_32 arch due to returning an arbitrary int where 0 was expected.
This commit is contained in:
parent
9f7e00f6a4
commit
6c8be30e7f
2 changed files with 1 additions and 3 deletions
|
@ -168,7 +168,7 @@ static void await_exit(Callable cb, pid_t pid) {
|
|||
break;
|
||||
}
|
||||
#endif
|
||||
int exit_code, signal_code = 0;
|
||||
int exit_code = 0, signal_code = 0;
|
||||
if (WIFEXITED(stat_loc)) {
|
||||
exit_code = WEXITSTATUS(stat_loc); // errno?
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue