diff options
Diffstat (limited to 'objects/base-objects.h')
| -rw-r--r-- | objects/base-objects.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/objects/base-objects.h b/objects/base-objects.h index ed2edfc..5351ead 100644 --- a/objects/base-objects.h +++ b/objects/base-objects.h @@ -27,7 +27,7 @@ typedef struct void *data; } PyIrssiObject; -#define DATA(obj) (((PyIrssiObject *)obj)->data) +#define DATA(obj) (obj? ((PyIrssiObject *)obj)->data : NULL) /* base for classes with a type */ typedef struct |
