aboutsummaryrefslogtreecommitdiff
path: root/lib/sqfs/dir_reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs/dir_reader.c')
-rw-r--r--lib/sqfs/dir_reader.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sqfs/dir_reader.c b/lib/sqfs/dir_reader.c
index 49d1188..65962d8 100644
--- a/lib/sqfs/dir_reader.c
+++ b/lib/sqfs/dir_reader.c
@@ -277,8 +277,8 @@ int sqfs_dir_reader_find_by_path(sqfs_dir_reader_t *rd,
return ret;
while (*path != '\0') {
- if (*path == '/' || *path == '\\') {
- while (*path == '/' || *path == '\\')
+ if (*path == '/') {
+ while (*path == '/')
++path;
continue;
}
@@ -290,7 +290,6 @@ int sqfs_dir_reader_find_by_path(sqfs_dir_reader_t *rd,
ptr = strchr(path, '/');
if (ptr == NULL) {
- ptr = strchr(path, '\\');
if (ptr == NULL) {
for (ptr = path; *ptr != '\0'; ++ptr)