From 199372b21f22ec6dc3a66a8d9a7b1521f3de0566 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 13 Jun 2006 01:59:59 +0000 Subject: [PATCH] prevent uninitialized variable. --- sys/uvm/uvm_swap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c index 79de7b3d87e0..9ec865960823 100644 --- a/sys/uvm/uvm_swap.c +++ b/sys/uvm/uvm_swap.c @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_swap.c,v 1.101 2006/06/12 21:05:47 christos Exp $ */ +/* $NetBSD: uvm_swap.c,v 1.102 2006/06/13 01:59:59 christos Exp $ */ /* * Copyright (c) 1995, 1996, 1997 Matthew R. Green @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uvm_swap.c,v 1.101 2006/06/12 21:05:47 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_swap.c,v 1.102 2006/06/13 01:59:59 christos Exp $"); #include "fs_nfs.h" #include "opt_uvmhist.h" @@ -454,6 +454,7 @@ sys_swapctl(struct lwp *l, void *v, register_t *retval) */ lockmgr(&swap_syscall_lock, LK_EXCLUSIVE, NULL); + userpath = malloc(SWAP_PATH_MAX, M_TEMP, M_WAITOK); /* * we handle the non-priv NSWAP and STATS request first. * @@ -468,7 +469,6 @@ sys_swapctl(struct lwp *l, void *v, register_t *retval) goto out; } - userpath = malloc(SWAP_PATH_MAX, M_TEMP, M_WAITOK); /* * SWAP_STATS: get stats on current # of configured swap devs *