summaryrefslogtreecommitdiff
path: root/include/qapi/qmp/qnull.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/qapi/qmp/qnull.h')
-rw-r--r--include/qapi/qmp/qnull.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/qapi/qmp/qnull.h b/include/qapi/qmp/qnull.h
index 75b29c6a39..c1426882c5 100644
--- a/include/qapi/qmp/qnull.h
+++ b/include/qapi/qmp/qnull.h
@@ -23,8 +23,7 @@ extern QNull qnull_;
static inline QNull *qnull(void)
{
- qobject_ref(&qnull_);
- return &qnull_;
+ return qobject_ref(&qnull_);
}
bool qnull_is_equal(const QObject *x, const QObject *y);