X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/f00017098478afe94af08f5473fe5e89f976e5cf..8a9ec85763809cd3e849d3b00750ba74222dee18:/unix/uxpty.c diff --git a/unix/uxpty.c b/unix/uxpty.c index 7ea7131c..99ff6386 100644 --- a/unix/uxpty.c +++ b/unix/uxpty.c @@ -633,6 +633,7 @@ int pty_real_select_result(Pty pty, int event, int status) if (close_on_exit == FORCE_OFF || (close_on_exit == AUTO && pty->exit_code != 0)) { char message[512]; + message[0] = '\0'; if (WIFEXITED(pty->exit_code)) sprintf(message, "\r\n[pterm: process terminated with exit" " code %d]\r\n", WEXITSTATUS(pty->exit_code));