[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/11] Properly escape QDECREF macro arguments
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH 01/11] Properly escape QDECREF macro arguments |
Date: |
Wed, 11 Nov 2009 11:28:53 -0600 |
QDECREF does not properly escape the macro arguments which can lead to
unexpected syntax errors.
Signed-off-by: Anthony Liguori <address@hidden>
---
qobject.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/qobject.h b/qobject.h
index 4cc9287..76f669f 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) \
--
1.6.2.5
- [Qemu-devel] [PATCH 01/11] Properly escape QDECREF macro arguments,
Anthony Liguori <=
- [Qemu-devel] [PATCH 09/11] Add a JSON parser, Anthony Liguori, 2009/11/11
- [Qemu-devel] [PATCH 05/11] Add unit test for QFloat, Anthony Liguori, 2009/11/11
- [Qemu-devel] [PATCH 11/11] Add a unit test for JSON support, Anthony Liguori, 2009/11/11
- [Qemu-devel] [PATCH 06/11] Add a QBool type, Anthony Liguori, 2009/11/11
- [Qemu-devel] [PATCH 03/11] Allow strings to grow in size, Anthony Liguori, 2009/11/11
- [Qemu-devel] [PATCH 08/11] Add a JSON message boundary identifier, Anthony Liguori, 2009/11/11
- [Qemu-devel] [PATCH 02/11] Add operations to qlist to allow it to be used as a stack, Anthony Liguori, 2009/11/11