]> git.proxmox.com Git - mirror_qemu.git/commit
tests: bios-tables-test: replace memset with initializer
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Mar 2023 13:07:27 +0000 (15:07 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Apr 2023 09:17:35 +0000 (11:17 +0200)
commita74b0d0a6dcca4e7d7561655256a8cf671d80ac1
treee7265e9e66c7e21bb7e200b6dec7fd5ae6fb3b29
parent3f9c41c5df9617510d8533cf6588172efb3df34b
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>
tests/qtest/bios-tables-test.c