]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/boot/efi/efi-string.c
tree-wide: use ASSERT_PTR more
[thirdparty/systemd.git] / src / boot / efi / efi-string.c
index 6161f89a74a1287b53e18d89c0aec7b9faac57d1..dfb2b06a75924609807c16f1c32e39f59259a6d3 100644 (file)
@@ -82,8 +82,7 @@ DEFINE_STRNCASECMP(char16_t, strncasecmp16, true);
 
 #define DEFINE_STRCPY(type, name)                                     \
         type *name(type * restrict dest, const type * restrict src) { \
-                assert(dest);                                         \
-                type *ret = dest;                                     \
+                type *ret = ASSERT_PTR(dest);                         \
                                                                       \
                 if (!src) {                                           \
                         *dest = '\0';                                 \