diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-20 13:44:03 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-20 13:45:20 +0300 |
commit | f9791155e4821d235e864be40a9c39d58e7e5f8a (patch) | |
tree | cde3baea34ca6c7d4e0f78e823d703d6042d20fc /source/blender | |
parent | cd24871706411b2afd6e098e2b7c95c94bc2de38 (diff) |
Minor cleanup (BLI_cleanup_dir already adds trailing slash, and correct a false-positive assert).
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 6 |
1 files changed, 1 insertions, 5 deletions
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)) { |