tree-wide: simplify x ? x : y to x ?: y where applicable

This commit is contained in:
Frantisek Sumsal
2023-03-18 14:23:11 +01:00
parent 64254629f7
commit 1da3cb8141
14 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ char** strv_new_ap(const char *x, va_list ap);
#define STRV_IGNORE ((const char *) POINTER_MAX)
static inline const char* STRV_IFNOTNULL(const char *x) {
return x ? x : STRV_IGNORE;
return x ?: STRV_IGNORE;
}
static inline bool strv_isempty(char * const *l) {