[Bf-blender-cvs] [9f008d1] master: assert when BLI_exists is called with NULL path

Campbell Barton noreply at git.blender.org
Tue Feb 17 01:37:06 CET 2015


Commit: 9f008d17fe043d8f41842df18257753a8c02b191
Author: Campbell Barton
Date:   Tue Feb 17 11:31:04 2015 +1100
Branches: master
https://developer.blender.org/rB9f008d17fe043d8f41842df18257753a8c02b191

assert when BLI_exists is called with NULL path

===================================================================

M	source/blender/blenlib/intern/storage.c

===================================================================

diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index 05b6d6d..90c4ac3 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);




More information about the Bf-blender-cvs mailing list