Browse Source

[LibOS] Remove nonsense check in shim_namei.c:eat_slashes()

Isaku Yamahata 6 years ago
parent
commit
8afbe0f82f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      LibOS/shim/src/fs/shim_namei.c

+ 2 - 1
LibOS/shim/src/fs/shim_namei.c

@@ -42,7 +42,8 @@
  * Must be a null-terminated string. */
 static inline const char * eat_slashes (const char * string)
 {
-    while (*string == '/' && *string != '\0') string++;
+    while (*string == '/')
+        string++;
     return string;
 }