From 4102d67d32ad2d8411d1ef15e80d3373f36e262b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 7 Mar 2020 00:35:55 +1100 Subject: Cleanup: avoid use of BLI_cleanup_dir Some cases don't need to add the trailing slash. Use BLI_cleanup_path in this case. --- source/blender/blenlib/intern/path_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/intern/path_util.c') diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index 48148fc1134..f5dc5b68107 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -708,7 +708,7 @@ bool BLI_parent_dir(char *path) char tmp[FILE_MAX + 4]; BLI_join_dirfile(tmp, sizeof(tmp), path, parent_dir); - BLI_cleanup_dir(NULL, tmp); /* does all the work of normalizing the path for us */ + BLI_cleanup_path(NULL, tmp); /* does all the work of normalizing the path for us */ if (!BLI_path_extension_check(tmp, parent_dir)) { strcpy(path, tmp); /* We assume pardir is always shorter... */ -- cgit v1.2.3