diff options
| author | Bernard Xiong <[email protected]> | 2018-03-04 12:16:52 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2018-03-04 12:16:52 +0800 |
| commit | 7f1db36f39fda0d56ecb4e20ac096c42dee06d74 (patch) | |
| tree | 33327f23bd5074867df1bcf50df67150b78afa61 /components/finsh | |
| parent | c65ec96e8ce164617b1ff5b67ad0470eecf147e9 (diff) | |
[finsh] fix the compiling warning for [-Wmisleading-indentation]
Diffstat (limited to 'components/finsh')
| -rw-r--r-- | components/finsh/msh.c | 5 |
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; |
