tests: bios-tables-test: replace memset with initializer
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Mar 2023 13:11:09 +0000 (15:11 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 25 Apr 2023 02:56:55 +0000 (22:56 -0400)
commit094e29a27184430d6d82ad4bea1d3311fc48297e
tree4827b2fc346cb078a22272e084f9990b96aa305c
parent1af507756bae775028c27d30e602e2b9c72cd074
tests: bios-tables-test: replace memset with initializer

Coverity complains that memset() writes over a const field.  Use
an initializer instead, so that the const field is left to zero.
Tests that have to write the const field already use an initializer
for the whole struct, here I am choosing the smallest possible
patch (which is not that small already).

Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20230330131109.47856-1-pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
tests/qtest/bios-tables-test.c