From 0aeb5fc6df49cbd0747753957c76e2b31665b6ae Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 1 Jul 2012 15:59:12 +0000 Subject: [PATCH] printf was being done on uninitialized string. --- source/blender/render/intern/source/render_result.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/blender/render/intern/source/render_result.c b/source/blender/render/intern/source/render_result.c index 4b53c3f2b11..60f72fcdcfc 100644 --- a/source/blender/render/intern/source/render_result.c +++ b/source/blender/render/intern/source/render_result.c @@ -915,12 +915,11 @@ void render_result_exr_file_begin(Render *re) RenderResult *rr; RenderLayer *rl; char str[FILE_MAX]; - - for (rr = re->result; rr; rr = rr->next) { - printf("write exr tmp file, %dx%d, %s\n", rr->rectx, rr->recty, str); + for (rr = re->result; rr; rr = rr->next) { for (rl = rr->layers.first; rl; rl = rl->next) { render_result_exr_file_path(re->scene, rl->name, rr->sample_nr, str); + printf("write exr tmp file, %dx%d, %s\n", rr->rectx, rr->recty, str); IMB_exrtile_begin_write(rl->exrhandle, str, 0, rr->rectx, rr->recty, re->partx, re->party); } }