소스 검색

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

Bernard Xiong 8 년 전
부모
커밋
7f1db36f39
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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;