Skip to content

Commit

Permalink
tests: bios-tables-test: replace memset with initializer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini committed Apr 20, 2023
1 parent 3f9c41c commit a74b0d0
Showing 1 changed file with 43 additions and 80 deletions.

0 comments on commit a74b0d0

Please sign in to comment.