avoid the use of an uninitialised variable in one of the codepaths in
authorjsg <jsg@openbsd.org>
Sun, 4 Jan 2015 02:53:19 +0000 (02:53 +0000)
committerjsg <jsg@openbsd.org>
Sun, 4 Jan 2015 02:53:19 +0000 (02:53 +0000)
pool_setlowat()

ok dlg@ tedu@

sys/kern/subr_pool.c

index 4acc608..3cf0474 100644 (file)
@@ -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;