From: chl Date: Sun, 1 Aug 2010 03:09:48 +0000 (+0000) Subject: fix use of uninitialized variable. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2348d65f5b363539bb64197fb25e0e42fb34b389;p=openbsd fix use of uninitialized variable. reported by gcc. ok canacar@ --- 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; }