5fe985d331f830932eb3ca288238eabd2792ed4e — Stephen Gregoratto 2 months ago 8f46205
Initialize file descriptors
1 files changed, 1 insertions(+), 1 deletions(-)

M shell/redir.c
M shell/redir.c => shell/redir.c +1 -1
@@ 112,7 112,7 @@ // TODO: filename expansions
  	char *filename = mrsh_word_str(redir->name);
  
- 	int fd, default_redir_fd;
+ 	int fd = -1, default_redir_fd = -1;
  	errno = 0;
  	switch (redir->op) {
  	case MRSH_IO_LESS: // <