diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-29 17:47:32 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-29 17:47:32 +0300 |
commit | 0952a8e44ae2eb9617426c5878acf0224a0831b2 (patch) | |
tree | e3edec56c4c54860fcdba096da53ff6f801d3f93 /source/blender/blenloader | |
parent | 95ed5d44371261a5a2067b7ba228b9bbcd7f0f0c (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.c | 2 |
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; } |