aboutsummaryrefslogtreecommitdiff
path: root/qobject/qnull.c
diff options
context:
space:
mode:
Diffstat (limited to 'qobject/qnull.c')
-rw-r--r--qobject/qnull.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/qobject/qnull.c b/qobject/qnull.c
index c124d0585e..69a21d1059 100644
--- a/qobject/qnull.c
+++ b/qobject/qnull.c
@@ -14,7 +14,9 @@
#include "qemu-common.h"
#include "qapi/qmp/qobject.h"
-QObject qnull_ = {
- .type = QTYPE_QNULL,
- .refcnt = 1,
+QNull qnull_ = {
+ .base = {
+ .type = QTYPE_QNULL,
+ .refcnt = 1,
+ },
};