| commit | 2c8ac4440ae0696253014d7988fab00b526d3249 | [log] [tgz] |
|---|---|---|
| author | Gregory Nutt <gnutt@nuttx.org> | Thu Oct 06 08:36:15 2016 -0600 |
| committer | Gregory Nutt <gnutt@nuttx.org> | Thu Oct 06 08:36:15 2016 -0600 |
| tree | 4680f19c1463ca853dd03c75d7889140ad1243a7 | |
| parent | 8fc1529ef1d2ba962b6460b02250fbf4e336cc85 [diff] |
apps/nshlib: Don't try to flush output streams if stdio buffered I/O is not supported.
diff --git a/nshlib/nsh_system.c b/nshlib/nsh_system.c index 62385b1..d78438f 100644 --- a/nshlib/nsh_system.c +++ b/nshlib/nsh_system.c
@@ -84,7 +84,9 @@ /* Parse process the command */ (void)nsh_parse(vtbl, argv[1]); +#if CONFIG_NFILE_STREAMS > 0 fflush(pstate->cn_outstream); +#endif /* Exit upon return */