swaybar: Use "!ptr" for comparison to NULL

Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
This commit is contained in:
Elyes HAOUAS 2021-04-13 10:33:35 +02:00
parent a6d761a31c
commit c71a8b0b7b
4 changed files with 6 additions and 6 deletions

View file

@ -13,7 +13,7 @@
#include "swaybar/status_line.h"
void i3bar_block_unref(struct i3bar_block *block) {
if (block == NULL) {
if (!block) {
return;
}