فهرست منبع

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

Bernard Xiong 7 سال پیش
والد
کامیت
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;