summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2020-12-18 14:08:58 -0800
committerMarge Bot <eric+marge@anholt.net>2020-12-24 21:15:38 +0000
commit671e1571d9fc98d94b37c353e638518919244d63 (patch)
treed2320179d7af6c5a5c47227c6e19224e42c99f3f
parent2472f52e738c5e692b1988e6272f78dafc0cbd68 (diff)
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 <vlee@freedesktop.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8168>
-rw-r--r--src/compiler/nir/tests/serialize_tests.cpp2
1 files changed, 1 insertions, 1 deletions
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();