summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index 8a638097..1f0b3a3a 100644
--- a/src/common.h
+++ b/src/common.h
@@ -47,10 +47,14 @@
#include "nls.h"
#define g_free_not_null(a) \
- if (a) g_free(a);
+ G_STMT_START { \
+ if (a) g_free(a); \
+ } G_STMT_END
#define g_free_and_null(a) \
- if (a) { g_free(a); (a) = NULL; }
+ G_STMT_START { \
+ if (a) { g_free(a); (a) = NULL; } \
+ } G_STMT_END
#define G_INPUT_READ (1 << 0)
#define G_INPUT_WRITE (1 << 1)