Module: Mesa Branch: master Commit: 671e1571d9fc98d94b37c353e638518919244d63 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=671e1571d9fc98d94b37c353e638518919244d63
Author: Vinson Lee <[email protected]> Date: Fri Dec 18 14:08:58 2020 -0800 nir/tests: Initialize nir_serialize_test member dup. Fix defect reported by Coverity Scan. Uninitialized pointer field (UNINIT_CTOR) uninit_member: Non-static class member dup is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8168> --- src/compiler/nir/tests/serialize_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/tests/serialize_tests.cpp b/src/compiler/nir/tests/serialize_tests.cpp index 451fc2c9f2a..12a13d87da0 100644 --- a/src/compiler/nir/tests/serialize_tests.cpp +++ b/src/compiler/nir/tests/serialize_tests.cpp @@ -44,7 +44,7 @@ protected: }; nir_serialize_test::nir_serialize_test() -: options() +: dup(NULL), options() { glsl_type_singleton_init_or_ref(); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
