summaryrefslogtreecommitdiff
path: root/common/treepathutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/treepathutils.c')
-rw-r--r--common/treepathutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/treepathutils.c b/common/treepathutils.c
index 2e43f94..c8f2b18 100644
--- a/common/treepathutils.c
+++ b/common/treepathutils.c
@@ -191,7 +191,7 @@ unsigned long int filelist_find_index_by_path(struct PathTree *tree, const char
void filelist_tree_add_item_recurr(struct PathTree *tree, const char *path, const char *original_pathstr, struct TVFSItem *item, unsigned long index)
{
- char *pos = strstr(path, "/");
+ const char *pos = strstr(path, "/");
char *first_part;
char *last_part;
if (pos) {