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-29 17:47:32 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-08-29 17:47:32 +0300
commit0952a8e44ae2eb9617426c5878acf0224a0831b2 (patch)
treee3edec56c4c54860fcdba096da53ff6f801d3f93 /source/blender/blenloader
parent95ed5d44371261a5a2067b7ba228b9bbcd7f0f0c (diff)
Cleanup: set `fd->mainlist` to NULL at the end of `blo_read_file_internal()`.
This is a local var, do not try to use it later!
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 6600273b6b0..e71cf0a214b 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -8347,6 +8347,8 @@ BlendFileData *blo_read_file_internal(FileData *fd, const char *filepath)
link_global(fd, bfd); /* as last */
+ fd->mainlist = NULL; /* Safety, this is local variable, shall not be used afterward. */
+
return bfd;
}