diff options
author | Ingo Bürk <admin@airblader.de> | 2017-11-29 08:33:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-29 08:33:27 +0100 |
commit | f6f198c3fed90cfc4672588cf3d6a8c712f06f97 (patch) | |
tree | 16f1bc0dc81705bb30d1eee5eec9e880a084ffb7 /i3-input | |
parent | 3e34122de4037b9ddef128e1ed999f0eff71edf6 (diff) | |
parent | 865bd462b4d71c6e0d5edcae148a5b6a6c208ffb (diff) | |
download | i3-f6f198c3fed90cfc4672588cf3d6a8c712f06f97.tar.gz i3-f6f198c3fed90cfc4672588cf3d6a8c712f06f97.zip |
Merge pull request #3058 from d-e-s-o/fix-FREE
do not check for NULL in FREE macro
Diffstat (limited to 'i3-input')
-rw-r--r-- | i3-input/i3-input.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/i3-input/i3-input.h b/i3-input/i3-input.h index d347506f..d7aae66b 100644 --- a/i3-input/i3-input.h +++ b/i3-input/i3-input.h @@ -5,12 +5,10 @@ #include <err.h> #define die(...) errx(EXIT_FAILURE, __VA_ARGS__); -#define FREE(pointer) \ - do { \ - if (pointer != NULL) { \ - free(pointer); \ - pointer = NULL; \ - } \ +#define FREE(pointer) \ + do { \ + free(pointer); \ + pointer = NULL; \ } while (0) extern xcb_window_t root; |