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:
authorCampbell Barton <campbell@blender.org>2022-08-17 05:50:13 +0300
committerCampbell Barton <campbell@blender.org>2022-08-17 05:51:07 +0300
commit2481be90e38d36abc06501c395105fa1833baf1c (patch)
tree2b6c63cbde310eacec55150d3b0b2e552813a350
parent1f2a5fea87526da95c79269b8f2d4bbc60673666 (diff)
WM: ensure AlembicImportParams are always initialized
Initialize all members before assignment, ensuring newly added members are never left uninitialized.
-rw-r--r--source/blender/editors/io/io_alembic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/io/io_alembic.c b/source/blender/editors/io/io_alembic.c
index 9b427938279..f04713c2eb9 100644
--- a/source/blender/editors/io/io_alembic.c
+++ b/source/blender/editors/io/io_alembic.c
@@ -651,7 +651,7 @@ static int wm_alembic_import_exec(bContext *C, wmOperator *op)
ED_object_mode_set(C, OB_MODE_OBJECT);
}
- struct AlembicImportParams params;
+ struct AlembicImportParams params = {};
params.global_scale = scale;
params.sequence_len = sequence_len;
params.sequence_offset = offset;