summaryrefslogtreecommitdiff
path: root/nuttx/examples/nsh/nsh_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/examples/nsh/nsh_serial.c')
-rw-r--r--nuttx/examples/nsh/nsh_serial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/examples/nsh/nsh_serial.c b/nuttx/examples/nsh/nsh_serial.c
index 95953171c..e138cf6c1 100644
--- a/nuttx/examples/nsh/nsh_serial.c
+++ b/nuttx/examples/nsh/nsh_serial.c
@@ -114,6 +114,8 @@ static inline FAR struct serial_s *nsh_allocstruct(void)
pstate->ss_vtbl.undirect = nsh_consoleundirect;
pstate->ss_vtbl.exit = nsh_consoleexit;
+ memset(&pstate->ss_vtbl.np, 0, sizeof(struct nsh_parser_s));
+
pstate->ss_refs = 1;
pstate->ss_fd = 1;
pstate->ss_stream = stdout;