diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/utils.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstrongswan/utils.h b/src/libstrongswan/utils.h index c5718d9f8..d09319d0d 100644 --- a/src/libstrongswan/utils.h +++ b/src/libstrongswan/utils.h @@ -121,9 +121,8 @@ /** * Object allocation/initialization macro, using designated initializer. */ -#define INIT(this, ...) ({ (this) = malloc(sizeof(*(this))); \ - *(this) = (typeof(*(this))){ __VA_ARGS__ }; \ - (this); }) +#define INIT(this, ...) { (this) = malloc(sizeof(*(this))); \ + *(this) = (typeof(*(this))){ __VA_ARGS__ }; } /** * Method declaration/definition macro, providing private and public interface. |