diff options
author | jh <jh@FreeBSD.org> | 2010-03-08 16:23:32 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2010-03-08 16:23:32 +0000 |
commit | 2fa9397b046be3607f32abee6b4071040f1ec527 (patch) | |
tree | eae71bed760a24c42bee3c641a6be3f49557409e /usr.bin/xlint | |
parent | 91112f5ed192d618cf598d60813b675752451954 (diff) | |
download | FreeBSD-src-2fa9397b046be3607f32abee6b4071040f1ec527.zip FreeBSD-src-2fa9397b046be3607f32abee6b4071040f1ec527.tar.gz |
Pass the correct size to memset().
PR: bin/128094
Submitted by: Henning Petersen
MFC after: 1 week
Diffstat (limited to 'usr.bin/xlint')
-rw-r--r-- | usr.bin/xlint/lint1/scan.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/xlint/lint1/scan.l b/usr.bin/xlint/lint1/scan.l index ea5a2c5..05f4ed7 100644 --- a/usr.bin/xlint/lint1/scan.l +++ b/usr.bin/xlint/lint1/scan.l @@ -319,7 +319,7 @@ allocsb(void) if ((sb = malloc(sizeof (sbuf_t))) == NULL) nomem(); } - (void)memset(sb, 0, sizeof (sb)); + (void)memset(sb, 0, sizeof (*sb)); return (sb); } |