summaryrefslogtreecommitdiff
path: root/components/finsh
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-03-04 12:16:52 +0800
committerBernard Xiong <[email protected]>2018-03-04 12:16:52 +0800
commit7f1db36f39fda0d56ecb4e20ac096c42dee06d74 (patch)
tree33327f23bd5074867df1bcf50df67150b78afa61 /components/finsh
parentc65ec96e8ce164617b1ff5b67ad0470eecf147e9 (diff)
[finsh] fix the compiling warning for [-Wmisleading-indentation]
Diffstat (limited to 'components/finsh')
-rw-r--r--components/finsh/msh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/finsh/msh.c b/components/finsh/msh.c
index f7e40c8841..f308e70ace 100644
--- a/components/finsh/msh.c
+++ b/components/finsh/msh.c
@@ -405,7 +405,10 @@ void msh_auto_complete_path(char *path)
ptr = path;
for (;;)
{
- if (*ptr == '/') index = ptr + 1; if (!*ptr) break; ptr ++;
+ if (*ptr == '/') index = ptr + 1;
+ if (!*ptr) break;
+
+ ptr ++;
}
if (index == RT_NULL) index = path;