Browse Source

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

Bernard Xiong 7 years ago
parent
commit
7f1db36f39
1 changed files with 4 additions and 1 deletions
  1. 4 1
      components/finsh/msh.c

+ 4 - 1
components/finsh/msh.c

@@ -405,7 +405,10 @@ void msh_auto_complete_path(char *path)
     ptr = path;
     ptr = path;
     for (;;)
     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;
     if (index == RT_NULL) index = path;