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/blenloader/intern/writefile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/blenloader/intern') diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index dece8740789..88fc6a2a930 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -4096,9 +4096,9 @@ bool BLO_write_file(Main *mainvar, BLI_split_dir_part(mainvar->name, dir_src, sizeof(dir_src)); BLI_split_dir_part(filepath, dir_dst, sizeof(dir_dst)); - /* just in case there is some subtle difference */ - BLI_cleanup_dir(mainvar->name, dir_dst); - BLI_cleanup_dir(mainvar->name, dir_src); + /* Just in case there is some subtle difference. */ + BLI_cleanup_path(mainvar->name, dir_dst); + BLI_cleanup_path(mainvar->name, dir_src); if (G.relbase_valid && (BLI_path_cmp(dir_dst, dir_src) == 0)) { /* Saved to same path. Nothing to do. */ -- cgit v1.2.3