diff --git a/usr.bin/indent/io.c b/usr.bin/indent/io.c index 1f662a7d6c8..e1a30e504d6 100644 --- a/usr.bin/indent/io.c +++ b/usr.bin/indent/io.c @@ -630,7 +630,7 @@ parsefont(struct fstate *f, const char *s0) const char *s = s0; int sizedelta = 0; - memset(f, 0, sizeof(struct fstate)); + memset(f, '\0', sizeof(*f)); while (*s) { if (isdigit(*s)) f->size = f->size * 10 + *s - '0';