aboutsummaryrefslogtreecommitdiff
path: root/cbs.h
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-23 15:54:41 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-23 15:54:41 +0100
commit4544d9a0aa23b85ac81be58e4c2f7adc4c3c0cff (patch)
treeabd1c8df669ee712b73333eaae11842a4a9b576d /cbs.h
parent3fd20776b6d0b3d634def35a939f896dfe81f9e3 (diff)
Prefer memset()
Diffstat (limited to 'cbs.h')
-rw-r--r--cbs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cbs.h b/cbs.h
index dd39f28..b8b7ece 100644
--- a/cbs.h
+++ b/cbs.h
@@ -349,7 +349,7 @@ void
strvfree(struct strv *v)
{
free(v->buf);
- *v = (struct strv){0};
+ memset(v, 0, sizeof(*v));
}
void *