[finsh] fix the compiling warning for [-Wmisleading-indentation]

This commit is contained in:
Bernard Xiong 2018-03-04 12:16:52 +08:00
parent c65ec96e8c
commit 7f1db36f39
1 changed files with 4 additions and 1 deletions

View File

@ -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;