From 34cdeaae9369af5dce3ce3a4a7756c033bc44cc5 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Mon, 3 Jul 2006 06:00:18 +0000 Subject: worked on formats. working on themes now; testing adding functions and methods to objects git-svn-id: http://svn.irssi.org/repos/irssi-python@4295 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- objects/base-objects.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'objects/base-objects.h') 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 -- cgit