mirror of
https://github.com/tmux/tmux.git
synced 2024-11-17 18:08:51 +00:00
Initialize return code in case something mysterious happens.
This commit is contained in:
parent
013d857ef8
commit
532d06c399
@ -190,7 +190,8 @@ cmd_run_shell_callback(struct job *job)
|
|||||||
retcode = WTERMSIG(status);
|
retcode = WTERMSIG(status);
|
||||||
xasprintf(&msg, "'%s' terminated by signal %d", cmd, retcode);
|
xasprintf(&msg, "'%s' terminated by signal %d", cmd, retcode);
|
||||||
retcode += 128;
|
retcode += 128;
|
||||||
}
|
} else
|
||||||
|
retcode = 0;
|
||||||
if (msg != NULL)
|
if (msg != NULL)
|
||||||
cmd_run_shell_print(job, msg);
|
cmd_run_shell_print(job, msg);
|
||||||
free(msg);
|
free(msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user