diff --git a/nshlib/nsh_slcd.c b/nshlib/nsh_slcd.c index 5a73021fd..eb0e9de69 100644 --- a/nshlib/nsh_slcd.c +++ b/nshlib/nsh_slcd.c @@ -93,7 +93,7 @@ static int nsh_clone_console(FAR struct console_stdio_s *pstate) /* Use /dev/console as console input */ - pstate->cn_confd = fd; + pstate->cn_confd = 0; /* Create a standard C stream on the console device */