diff options
author | Anthony Liguori | 2009-11-11 17:50:36 +0100 |
---|---|---|
committer | Anthony Liguori | 2009-11-17 15:49:38 +0100 |
commit | c99ca93142391a2461afbe07926fa50f1c8f4d9a (patch) | |
tree | b4eaea34a7b2ffcc6c8c08dc20b7646ad1aa10c5 | |
parent | Cleanup configure checks for dup3 and fallocate (diff) | |
download | qemu-c99ca93142391a2461afbe07926fa50f1c8f4d9a.tar.gz qemu-c99ca93142391a2461afbe07926fa50f1c8f4d9a.tar.xz qemu-c99ca93142391a2461afbe07926fa50f1c8f4d9a.zip |
Properly escape QDECREF macro arguments
QDECREF does not properly escape the macro arguments which can lead to
unexpected syntax errors.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | qobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -60,7 +60,7 @@ typedef struct QObject { QObject base /* Get the 'base' part of an object */ -#define QOBJECT(obj) (&obj->base) +#define QOBJECT(obj) (&(obj)->base) /* High-level interface for qobject_incref() */ #define QINCREF(obj) \ |