Skip to content

Commit

Permalink
Prefer memset()
Browse files Browse the repository at this point in the history
  • Loading branch information
Mango0x45 committed Jan 23, 2024
1 parent 3fd2077 commit 4544d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ void
strvfree(struct strv *v)
{
free(v->buf);
*v = (struct strv){0};
memset(v, 0, sizeof(*v));
}

void *
Expand Down

0 comments on commit 4544d9a

Please sign in to comment.