diff options
Diffstat (limited to 'lib/fstree/canonicalize_name.c')
-rw-r--r-- | lib/fstree/canonicalize_name.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/fstree/canonicalize_name.c b/lib/fstree/canonicalize_name.c index f35307f..7fbd5a7 100644 --- a/lib/fstree/canonicalize_name.c +++ b/lib/fstree/canonicalize_name.c @@ -11,12 +11,12 @@ static void normalize_slashes(char *filename) { char *dst = filename, *src = filename; - while (*src == '/' || *src == '\\') + while (*src == '/') ++src; while (*src != '\0') { - if (*src == '/' || *src == '\\') { - while (*src == '/' || *src == '\\') + if (*src == '/') { + while (*src == '/') ++src; if (*src == '\0') break; |