From 98277790f8a3b2055b23dc244561b63c419c6210 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 21 Mar 2007 19:32:18 +0000 Subject: Uninitialized variable in db_write_bytes(). --- sys/arch/m88k/m88k/db_interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/arch/m88k/m88k/db_interface.c b/sys/arch/m88k/m88k/db_interface.c index 877e2955190..ed3c1e3b7d3 100644 --- a/sys/arch/m88k/m88k/db_interface.c +++ b/sys/arch/m88k/m88k/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.5 2006/05/08 14:36:09 miod Exp $ */ +/* $OpenBSD: db_interface.c,v 1.6 2007/03/21 19:32:17 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -531,7 +531,7 @@ void db_write_bytes(db_addr_t addr, size_t size, char *data) { extern pt_entry_t *pmap_pte(pmap_t, vaddr_t); - char *dst; + char *dst = (char *)addr; vaddr_t va; paddr_t pa; pt_entry_t *pte, opte; -- cgit v1.2.3