indent(1): have the memset invocation somewhat more canonical.

While correct, the previous invocation was somewhat more error prone.

Pointed out by:	delphij, bde
This commit is contained in:
Pedro F. Giffuni 2016-08-23 15:49:31 +00:00
parent dd9faf6dc4
commit bf140447ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304686

View File

@ -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';