Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-08-20 13:44:03 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-08-20 13:45:20 +0300
commitf9791155e4821d235e864be40a9c39d58e7e5f8a (patch)
treecde3baea34ca6c7d4e0f78e823d703d6042d20fc /source/blender/editors/space_file/filelist.c
parentcd24871706411b2afd6e098e2b7c95c94bc2de38 (diff)
Minor cleanup (BLI_cleanup_dir already adds trailing slash, and correct a false-positive assert).
Diffstat (limited to 'source/blender/editors/space_file/filelist.c')
-rw-r--r--source/blender/editors/space_file/filelist.c6
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)) {