From 53129e92af3d863e6951b521f3d49f5c88563ada Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 18 Feb 2022 09:23:39 +0100 Subject: [PATCH] util: Add STR_IS_NULL_OR_EMPTY macro Shamelessly copied from https://gitlab.gnome.org/World/Phosh/phosh/-/blob/main/src/util.h#L13 --- src/util.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util.h b/src/util.h index d225645..4aa2d0a 100644 --- a/src/util.h +++ b/src/util.h @@ -28,6 +28,8 @@ G_BEGIN_DECLS +#define STR_IS_NULL_OR_EMPTY(x) ((x) == NULL || (x)[0] == '\0') + /* * For defining simple interface functions */