summaryrefslogtreecommitdiff
path: root/components/finsh/msh_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/finsh/msh_file.c')
-rw-r--r--components/finsh/msh_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/finsh/msh_file.c b/components/finsh/msh_file.c
index 10025965f0..b431d944c3 100644
--- a/components/finsh/msh_file.c
+++ b/components/finsh/msh_file.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -101,7 +101,7 @@ int msh_exec_script(const char *cmd_line, int size)
int length;
line_buf = (char *) rt_malloc(RT_CONSOLEBUF_SIZE);
- if (line_buf == RT_NULL)
+ if (line_buf == RT_NULL)
{
close(fd);
return -RT_ENOMEM;