calloc the mode data instead of malloc and initialize everything.

This commit is contained in:
nicm
2018-08-05 08:59:30 +00:00
parent d6ff630498
commit f5d7a80272
2 changed files with 1 additions and 14 deletions

View File

@ -894,7 +894,6 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
char *argv0, *cmd, **argvp;
const char *ptr, *first, *home;
struct termios tio2;
int i;
sigset_t set, oldset;
if (wp->fd != -1) {