diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-06 16:35:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-06 16:39:28 +0300 |
commit | 4102d67d32ad2d8411d1ef15e80d3373f36e262b (patch) | |
tree | 4121d33d28002d7003a1c5174eba5baca90f8672 /source/blender/blenlib/intern | |
parent | 2d5773d11a0698f1cf421d7fc7c7d823be601124 (diff) |
Cleanup: avoid use of BLI_cleanup_dir
Some cases don't need to add the trailing slash.
Use BLI_cleanup_path in this case.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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... */ |