Parcourir la source

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

Bernard Xiong il y a 7 ans
Parent
commit
7f1db36f39
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  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;
     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;