From 2348d65f5b363539bb64197fb25e0e42fb34b389 Mon Sep 17 00:00:00 2001 From: chl Date: Sun, 1 Aug 2010 03:09:48 +0000 Subject: [PATCH] fix use of uninitialized variable. reported by gcc. ok canacar@ --- usr.bin/systat/mbufs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/systat/mbufs.c b/usr.bin/systat/mbufs.c index f1c11f97b68..6a7a87ef8b6 100644 --- a/usr.bin/systat/mbufs.c +++ b/usr.bin/systat/mbufs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mbufs.c,v 1.26 2009/11/23 21:44:33 henning Exp $ */ +/* $OpenBSD: mbufs.c,v 1.27 2010/08/01 03:09:48 chl Exp $ */ /* * Copyright (c) 2008 Can Erkin Acar * @@ -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; } -- 2.20.1