From f9791155e4821d235e864be40a9c39d58e7e5f8a Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 20 Aug 2015 12:44:03 +0200 Subject: Minor cleanup (BLI_cleanup_dir already adds trailing slash, and correct a false-positive assert). --- source/blender/editors/space_file/filelist.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source/blender/editors/space_file') diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 0945e521dc7..c9133e803dd 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -1366,13 +1366,9 @@ const char *filelist_dir(struct FileList *filelist) */ void filelist_setdir(struct FileList *filelist, char *r_dir) { -#ifndef NDEBUG - size_t len = strlen(r_dir); - BLI_assert((len < FILE_MAX_LIBEXTRA) && ELEM(r_dir[len - 1], SEP, ALTSEP)); -#endif + BLI_assert(strlen(r_dir) < FILE_MAX_LIBEXTRA); BLI_cleanup_dir(G.main->name, r_dir); - BLI_add_slash(r_dir); filelist->checkdirf(filelist, r_dir); if (!STREQ(filelist->filelist.root, r_dir)) { -- cgit v1.2.3