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:
authorjulianeisel <julian_eisel@web.de>2014-11-10 20:51:56 +0300
committerjulianeisel <julian_eisel@web.de>2014-11-10 20:51:56 +0300
commit4eb628e204a71137584ae7e57a0ef42ad770b12f (patch)
tree9cefd9df437fadd2914dee79b306c17933b61577
parent157067acbde7e65bb5bef2023effca8a5fc657f3 (diff)
Fix T42499: Make sure directories are not interpreted as libraries
-rw-r--r--source/blender/blenloader/intern/readfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index d99500dae92..2a3d985ea61 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -1155,6 +1155,9 @@ bool BLO_is_a_library(const char *path, char *dir, char *group)
int len;
char *fd;
+ /* if path leads to a directory we can be sure we're not in a library */
+ if (BLI_is_dir(path)) return 0;
+
strcpy(dir, path);
len = strlen(dir);
if (len < 7) return 0;