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:
authorCampbell Barton <ideasman42@gmail.com>2015-02-17 03:31:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-02-17 03:36:35 +0300
commit9f008d17fe043d8f41842df18257753a8c02b191 (patch)
tree090dc9329e048ad9ed52a0a56772ccbf8f9df65c /source/blender/blenlib
parent00133ba8f098fece41c4f358a57c7ba323214502 (diff)
assert when BLI_exists is called with NULL path
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/storage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index 05b6d6daf27..90c4ac3bcdc 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -529,6 +529,7 @@ int BLI_exists(const char *name)
if (res == -1) return(0);
#else
struct stat st;
+ BLI_assert(name);
if (stat(name, &st)) return(0);
#endif
return(st.st_mode);