dynstr.c: Make zero-initialization portable

This commit is contained in:
Xavier Del Campo Romero 2023-03-08 01:19:21 +01:00
parent 0f2bf85be8
commit 8e7557ef7a
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
void dynstr_init(struct dynstr *const d)
{
memset(d, 0, sizeof *d);
*d = (const struct dynstr){0};
}
enum dynstr_err dynstr_vappend(struct dynstr *const d, const char *const format, va_list ap)