diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-01-23 15:54:41 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-23 15:54:41 +0100 |
commit | 4544d9a0aa23b85ac81be58e4c2f7adc4c3c0cff (patch) | |
tree | abd1c8df669ee712b73333eaae11842a4a9b576d | |
parent | 3fd20776b6d0b3d634def35a939f896dfe81f9e3 (diff) |
Prefer memset()
-rw-r--r-- | cbs.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -349,7 +349,7 @@ void strvfree(struct strv *v) { free(v->buf); - *v = (struct strv){0}; + memset(v, 0, sizeof(*v)); } void * |