diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-11 10:50:36 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-17 08:49:38 -0600 |
commit | c99ca93142391a2461afbe07926fa50f1c8f4d9a (patch) | |
tree | b4eaea34a7b2ffcc6c8c08dc20b7646ad1aa10c5 | |
parent | 78f5d726027d91065f11ea6b3e601492e0c1ff1d (diff) |
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) \ |