summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcloder <cloder@openbsd.org>2005-11-30 06:22:42 +0000
committercloder <cloder@openbsd.org>2005-11-30 06:22:42 +0000
commit43bf97a3d7792efc2a435582d5aae0ee0a59f0c6 (patch)
treebf2726731ac603a47f0e44c639f7dc4110ee743f
parentanother unused variable found by lint (diff)
downloadwireguard-openbsd-43bf97a3d7792efc2a435582d5aae0ee0a59f0c6.tar.xz
wireguard-openbsd-43bf97a3d7792efc2a435582d5aae0ee0a59f0c6.zip
Fix a very old bug_t with memset
-rw-r--r--usr.bin/xlint/lint1/scan.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xlint/lint1/scan.l b/usr.bin/xlint/lint1/scan.l
index 7193bc4194d..355ca9959f0 100644
--- a/usr.bin/xlint/lint1/scan.l
+++ b/usr.bin/xlint/lint1/scan.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: scan.l,v 1.13 2005/11/29 20:47:44 cloder Exp $ */
+/* $OpenBSD: scan.l,v 1.14 2005/11/30 06:22:42 cloder Exp $ */
/* $NetBSD: scan.l,v 1.8 1995/10/23 13:38:51 jpo Exp $ */
/*
@@ -34,7 +34,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: scan.l,v 1.13 2005/11/29 20:47:44 cloder Exp $";
+static char rcsid[] = "$OpenBSD: scan.l,v 1.14 2005/11/30 06:22:42 cloder Exp $";
#endif
#include <stdlib.h>
@@ -313,7 +313,7 @@ allocsb()
} else {
sb = xmalloc(sizeof (sbuf_t));
}
- (void)memset(sb, 0, sizeof (sb));
+ (void)memset(sb, 0, sizeof (sbuf_t));
return (sb);
}