From: jsg Date: Sun, 4 Jan 2015 02:53:19 +0000 (+0000) Subject: avoid the use of an uninitialised variable in one of the codepaths in X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=acf28716dc09342d302d988893cd4975fd2366d8;p=openbsd avoid the use of an uninitialised variable in one of the codepaths in pool_setlowat() ok dlg@ tedu@ --- diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c index 4acc608b1c0..3cf04744ce9 100644 --- a/sys/kern/subr_pool.c +++ b/sys/kern/subr_pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_pool.c,v 1.174 2014/12/22 02:59:53 tedu Exp $ */ +/* $OpenBSD: subr_pool.c,v 1.175 2015/01/04 02:53:19 jsg Exp $ */ /* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */ /*- @@ -863,7 +863,7 @@ pool_update_curpage(struct pool *pp) void pool_setlowat(struct pool *pp, int n) { - int prime; + int prime = 0; mtx_enter(&pp->pr_mtx); pp->pr_minitems = n;