aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/qmp-cmd-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qtest/qmp-cmd-test.c')
-rw-r--r--tests/qtest/qmp-cmd-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/qmp-cmd-test.c b/tests/qtest/qmp-cmd-test.c
index 897e4e937b..98caf6fef6 100644
--- a/tests/qtest/qmp-cmd-test.c
+++ b/tests/qtest/qmp-cmd-test.c
@@ -174,7 +174,7 @@ static bool object_type_has_mandatory_members(SchemaInfo *type)
g_assert(type->meta_type == SCHEMA_META_TYPE_OBJECT);
for (tail = type->u.object.members; tail; tail = tail->next) {
- if (!tail->value->has_q_default) {
+ if (!tail->value->q_default) {
return true;
}
}