summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-07-01 22:52:40 +0000
committerpeter <peter@FreeBSD.org>1999-07-01 22:52:40 +0000
commit1a56d5796bfc8b711d1da3d704e5892766b72daf (patch)
treee9e4ec00f969dca85dee51f2e17abd73ceb2b281
parent5eff3e6d951cc67f68eab00bd81a1d87dc9d0dbd (diff)
downloadFreeBSD-src-1a56d5796bfc8b711d1da3d704e5892766b72daf.zip
FreeBSD-src-1a56d5796bfc8b711d1da3d704e5892766b72daf.tar.gz
Moving the initialization for write sooner quiets a warning.
-rw-r--r--sys/kern/sys_process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index 6ed8ef1..4148295 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: sys_process.c,v 1.44 1999/04/27 11:16:13 phk Exp $
+ * $Id: sys_process.c,v 1.45 1999/04/28 11:37:04 phk Exp $
*/
#include <sys/param.h>
@@ -212,6 +212,7 @@ ptrace(curp, uap)
int write;
int s;
+ write = 0;
if (uap->req == PT_TRACE_ME)
p = curp;
else {
@@ -304,7 +305,6 @@ ptrace(curp, uap)
* Actually do the requests
*/
- write = 0;
curp->p_retval[0] = 0;
switch (uap->req) {
OpenPOWER on IntegriCloud