Use struct initializers instead of memset()

This is a bit more type-safe.
This commit is contained in:
Simon Ser 2023-07-07 14:34:56 +02:00
parent 4966857f21
commit 7a9f8d8d6b
34 changed files with 134 additions and 113 deletions

View file

@ -50,7 +50,7 @@ struct atomic {
};
static void atomic_begin(struct atomic *atom) {
memset(atom, 0, sizeof(*atom));
*atom = (struct atomic){0};
atom->req = drmModeAtomicAlloc();
if (!atom->req) {