apps/nshlib: Don't try to flush output streams if stdio buffered I/O is not supported.

This commit is contained in:
Gregory Nutt 2016-10-06 08:36:15 -06:00
parent 8fc1529ef1
commit 2c8ac4440a

View File

@ -84,7 +84,9 @@ int nsh_system(int argc, char *argv[])
/* Parse process the command */
(void)nsh_parse(vtbl, argv[1]);
#if CONFIG_NFILE_STREAMS > 0
fflush(pstate->cn_outstream);
#endif
/* Exit upon return */