On 30/03/2023 15.11, Paolo Bonzini wrote:
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 <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
---
  tests/qtest/bios-tables-test.c | 123 ++++++++++++---------------------
  1 file changed, 43 insertions(+), 80 deletions(-)

Reviewed-by: Thomas Huth <[email protected]>


Reply via email to