artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94687cf
)
fix use of uninitialized variable.
author
chl
<chl@openbsd.org>
Sun, 1 Aug 2010 03:09:48 +0000
(
03:09
+0000)
committer
chl
<chl@openbsd.org>
Sun, 1 Aug 2010 03:09:48 +0000
(
03:09
+0000)
reported by gcc.
ok canacar@
usr.bin/systat/mbufs.c
patch
|
blob
|
history
diff --git
a/usr.bin/systat/mbufs.c
b/usr.bin/systat/mbufs.c
index
f1c11f9
..
6a7a87e
100644
(file)
--- a/
usr.bin/systat/mbufs.c
+++ b/
usr.bin/systat/mbufs.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: mbufs.c,v 1.2
6 2009/11/23 21:44:33 henning
Exp $ */
+/* $OpenBSD: mbufs.c,v 1.2
7 2010/08/01 03:09:48 chl
Exp $ */
/*
* Copyright (c) 2008 Can Erkin Acar <canacar@openbsd.org>
*
@@
-254,7
+254,7
@@
read_mb(void)
size = sizeof(struct pool);
if (sysctl(mib, 4, &mbpool, &size, NULL, 0) < 0) {
- error("sysctl(KERN_POOL_POOL, %d)",
i
);
+ error("sysctl(KERN_POOL_POOL, %d)",
mib[3]
);
goto exit;
}