diff options
Diffstat (limited to 'apps/nshlib/nsh_ddcmd.c')
-rw-r--r-- | apps/nshlib/nsh_ddcmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/nshlib/nsh_ddcmd.c b/apps/nshlib/nsh_ddcmd.c index 58298ea7a..a2d14c003 100644 --- a/apps/nshlib/nsh_ddcmd.c +++ b/apps/nshlib/nsh_ddcmd.c @@ -621,10 +621,10 @@ int cmd_dd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) ret = OK; errout_with_outf: - DD_INCLOSE(&dd); + DD_OUTCLOSE(&dd); errout_with_inf: - DD_OUTCLOSE(&dd); + DD_INCLOSE(&dd); free(dd.buffer); errout_with_paths: |