X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/baf723ea141d95eec7a1c4d3baf141c9ec223843..772e31660471d86323fcf959c9cbde9861e7b4d9:/unix/uxpty.c?ds=sidebyside 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));