]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/strv.h
tree-wide: simplify x ? x : y to x ?: y where applicable
[thirdparty/systemd.git] / src / basic / strv.h
index 71ff3a4edf279418168a19c351dde5448cc2f07d..49e1c3d8b1317218aa2059502b7d0749d14f1ef2 100644 (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) {