commit 4e5eb8acf6b46eb683aa4b714f940cdc98b9752f
parent 2468bab51da9f356996a33328a0b9b0e0fad95e7
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 23 Jul 2024 12:28:14 +0200
Fixed htrdr_args_camera_perspective_parse function
The returned camera could have uninitialized values. We therefore
initialize it to its default argument set before parsing.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/core/htrdr_args.c b/src/core/htrdr_args.c
@@ -561,6 +561,8 @@ htrdr_args_camera_perspective_parse
goto error;
}
+ *cam = HTRDR_ARGS_CAMERA_PERSPECTIVE_DEFAULT;
+
res = cstr_parse_list(str, ':', parse_camera_perspective_parameter, cam);
if(res != RES_OK) goto error;