]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-hexdecoct.c
tree-wide: some automatic coccinelle fixes (#10463)
[thirdparty/systemd.git] / src / test / test-hexdecoct.c
index a972ddcef7c41b4519e62e4208f13757180eb27d..6e9b94b93314fee193c5dfc53031be5b4fea772f 100644 (file)
@@ -84,7 +84,7 @@ static void test_unhexmem_one(const char *s, size_t l, int retval) {
                         l = strlen(s);
 
                 assert_se(hex = hexmem(mem, len));
-                answer = strndupa(s ?: "", l);
+                answer = strndupa(strempty(s), l);
                 assert_se(streq(delete_chars(answer, WHITESPACE), hex));
         }
 }