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 <bastien@blender.org>2021-06-24 11:53:45 +0300
committerBastien Montagne <bastien@blender.org>2021-06-24 13:10:06 +0300
commit8cdb99d51c02d5cc60c774c176a43519c046e14c (patch)
tree0185df926bf3c14905d51a648c1d155cccc4dce1 /source/blender/imbuf
parent3a8347f82348ef2f430cdaa8a2e840ad3dba5a71 (diff)
Fix linking code after own recent commit.
More stupid mistake in recent enhanced reports for file load code, rB82c17082ba0e left some read-after-free situations.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/thumbs_blend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/thumbs_blend.c b/source/blender/imbuf/intern/thumbs_blend.c
index 48e7f171bb4..eb518828913 100644
--- a/source/blender/imbuf/intern/thumbs_blend.c
+++ b/source/blender/imbuf/intern/thumbs_blend.c
@@ -47,8 +47,8 @@ ImBuf *IMB_thumb_load_blend(const char *blen_path, const char *blen_group, const
if (blen_group && blen_id) {
LinkNode *ln, *names, *lp, *previews = NULL;
- struct BlendHandle *libfiledata = BLO_blendhandle_from_file(
- blen_path, &(BlendFileReadReport){.reports = NULL});
+ BlendFileReadReport bf_reports = {.reports = NULL};
+ struct BlendHandle *libfiledata = BLO_blendhandle_from_file(blen_path, &bf_reports);
int idcode = BKE_idtype_idcode_from_name(blen_group);
int i, nprevs, nnames;