From acf28716dc09342d302d988893cd4975fd2366d8 Mon Sep 17 00:00:00 2001 From: jsg Date: Sun, 4 Jan 2015 02:53:19 +0000 Subject: [PATCH] avoid the use of an uninitialised variable in one of the codepaths in pool_setlowat() ok dlg@ tedu@ --- sys/kern/subr_pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1