From: Anthony Liguori Date: Wed, 11 Nov 2009 16:50:36 +0000 (-0600) Subject: Properly escape QDECREF macro arguments X-Git-Tag: v0.12.0-rc0~293 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c99ca93142391a2461afbe07926fa50f1c8f4d9a;p=thirdparty%2Fqemu.git 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 --- diff --git a/qobject.h b/qobject.h index 4cc928770db..76f669f95d2 100644 --- a/qobject.h +++ b/qobject.h @@ -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) \