From 8cdb99d51c02d5cc60c774c176a43519c046e14c Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 24 Jun 2021 10:53:45 +0200 Subject: 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. --- source/blender/imbuf/intern/thumbs_blend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/imbuf') 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; -- cgit v1.2.3