aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-08-23 15:49:31 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-08-23 15:49:31 +0000
commitbf140447ba22be336a56544c86dcde828ad3a88a (patch)
tree5ddfac77a0d57f2e19804d67b612a102cda79843
parentdd9faf6dc4d15b54063480f6f03d7063be82097b (diff)
downloadsrc-bf140447ba22be336a56544c86dcde828ad3a88a.tar.gz
src-bf140447ba22be336a56544c86dcde828ad3a88a.zip
indent(1): have the memset invocation somewhat more canonical.
While correct, the previous invocation was somewhat more error prone. Pointed out by: delphij, bde
Notes
Notes: svn path=/head/; revision=304686
-rw-r--r--usr.bin/indent/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/indent/io.c b/usr.bin/indent/io.c
index 1f662a7d6c82..e1a30e504d69 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';