diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-02-17 03:31:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-02-17 03:36:35 +0300 |
commit | 9f008d17fe043d8f41842df18257753a8c02b191 (patch) | |
tree | 090dc9329e048ad9ed52a0a56772ccbf8f9df65c /source/blender | |
parent | 00133ba8f098fece41c4f358a57c7ba323214502 (diff) |
assert when BLI_exists is called with NULL path
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenlib/intern/storage.c | 1 |
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); |