diff options
author | 2019-09-14 17:35:04 +0200 | |
---|---|---|
committer | 2019-09-24 14:07:23 +0200 | |
commit | b1bc31f4b7db07ca7b76de604bef4088be0c18b7 (patch) | |
tree | 57836f5ecb4aa90222df3aae6ffc018b4614790b /scripts/qapi/source.py | |
parent | qapi: Delete useless check_exprs() code for simple union kind (diff) | |
download | qemu-b1bc31f4b7db07ca7b76de604bef4088be0c18b7.tar.xz qemu-b1bc31f4b7db07ca7b76de604bef4088be0c18b7.zip |
qapi: Fix to .check() empty structs just once
QAPISchemaObjectType.check() does nothing for types that have been
checked already. Except the "has been checked" predicate is broken
for empty types: self.members is [] then, which isn't true. The bug
is harmless, but fix it anyway: use self.member is not None instead.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190914153506.2151-18-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions