From: anonymix007 <48598263+anonymix007@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:59:08 +0000 (+0300) Subject: boot: Add xnew0 X-Git-Tag: v257-rc1~19^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09f16de6d8f44b45a84750e2829399c0c83634de;p=thirdparty%2Fsystemd.git boot: Add xnew0 Same as xnew but initialized with zeros --- diff --git a/src/boot/efi/util.h b/src/boot/efi/util.h index 054d49ef02b..c7634576cf4 100644 --- a/src/boot/efi/util.h +++ b/src/boot/efi/util.h @@ -69,6 +69,7 @@ static inline void* xmemdup(const void *p, size_t l) { } #define xnew(type, n) ((type *) xmalloc_multiply((n), sizeof(type))) +#define xnew0(type, n) ((type *) xcalloc_multiply((n), sizeof(type))) bool free_and_xstrdup16(char16_t **p, const char16_t *s);