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:
Vinson Lee 2020-09-29 17:27:48 -07:00
parent 77c1b01508
commit 12c20cbac0
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ protected:
xmlconfig_test::xmlconfig_test()
{
options = {};
}
xmlconfig_test::~xmlconfig_test()