diff --git a/src/boot/efi/util.h b/src/boot/efi/util.h index 054d49ef02..c7634576cf 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);