util/xmlconfig: Initialize xmlconfig member options in constructor.
Fix defects reported by Coverity Scan. Uninitialized pointer field (UNINIT_CTOR) uninit_member: Non-static class member field options.info is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member field options.values is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member field options.tableSize is not initialized in this constructor nor in any functions that it calls. Suggested-by: Eric Engestrom <eric@engestrom.ch> Signed-off-by: Vinson Lee <vlee@freedesktop.org> Acked-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6929>
This commit is contained in:
parent
77c1b01508
commit
12c20cbac0
|
@ -35,6 +35,7 @@ protected:
|
|||
|
||||
xmlconfig_test::xmlconfig_test()
|
||||
{
|
||||
options = {};
|
||||
}
|
||||
|
||||
xmlconfig_test::~xmlconfig_test()
|
||||
|
|
Loading…
Reference in New Issue