mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Initialize return code in case something mysterious happens.
This commit is contained in:
@ -190,7 +190,8 @@ cmd_run_shell_callback(struct job *job)
|
||||
retcode = WTERMSIG(status);
|
||||
xasprintf(&msg, "'%s' terminated by signal %d", cmd, retcode);
|
||||
retcode += 128;
|
||||
}
|
||||
} else
|
||||
retcode = 0;
|
||||
if (msg != NULL)
|
||||
cmd_run_shell_print(job, msg);
|
||||
free(msg);
|
||||
|
Reference in New Issue
Block a user