diff options
author | 2015-01-04 02:53:19 +0000 | |
---|---|---|
committer | 2015-01-04 02:53:19 +0000 | |
commit | acf28716dc09342d302d988893cd4975fd2366d8 (patch) | |
tree | ea8dbfa0f23b5471a92abe180f1ee7a8e63a9ed3 /sys/kern/subr_pool.c | |
parent | fix -b a mode, spotted by rpe (diff) | |
download | wireguard-openbsd-acf28716dc09342d302d988893cd4975fd2366d8.tar.xz wireguard-openbsd-acf28716dc09342d302d988893cd4975fd2366d8.zip |
avoid the use of an uninitialised variable in one of the codepaths in
pool_setlowat()
ok dlg@ tedu@
Diffstat (limited to 'sys/kern/subr_pool.c')
-rw-r--r-- | sys/kern/subr_pool.c | 4 |
1 files 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; |