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>
This commit is contained in:
Vinson Lee
2020-12-18 14:08:58 -08:00
committed by Marge Bot
parent 2472f52e73
commit 671e1571d9
+1 -1
View File
@@ -44,7 +44,7 @@ protected:
};
nir_serialize_test::nir_serialize_test()
: options()
: dup(NULL), options()
{
glsl_type_singleton_init_or_ref();