summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-28 00:54:49 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-28 00:54:49 +0000
commitc35c32f3f0c464701e578a7da6afe54241232291 (patch)
treec91b072b56f80a4932a8266f78b77f8f7d55efec /src/common.h
parent337ae1a8629f7ef1ed6fc13ce750c1eefc1a938f (diff)
downloadirssi-c35c32f3f0c464701e578a7da6afe54241232291.zip
g_free_not_null() is now equal to g_free() - didn't notice before this was
allowed.. :) I'll remove this macro entirely when I get around rewriting irssi.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2159 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/common.h b/src/common.h
index 968c1cd4..1ec4b48b 100644
--- a/src/common.h
+++ b/src/common.h
@@ -65,10 +65,7 @@ const char *get_irssi_config(void);
/* max. size for %d */
#define MAX_INT_STRLEN ((sizeof(int) * CHAR_BIT + 2) / 3 + 1)
-#define g_free_not_null(a) \
- G_STMT_START { \
- if (a) g_free(a); \
- } G_STMT_END
+#define g_free_not_null(a) g_free(a)
#define g_free_and_null(a) \
G_STMT_START { \