From 1a6be4d9bdb1896d37635755ab51df94eecbbd99 Mon Sep 17 00:00:00 2001 From: miod Date: Wed, 24 Jun 2015 20:50:39 +0000 Subject: [PATCH] Uninitialized variables; pedro@ --- sys/arch/amd64/amd64/db_disasm.c | 3 ++- sys/arch/i386/i386/db_disasm.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/amd64/amd64/db_disasm.c b/sys/arch/amd64/amd64/db_disasm.c index 846c4c2e9d0..1512248c5de 100644 --- a/sys/arch/amd64/amd64/db_disasm.c +++ b/sys/arch/amd64/amd64/db_disasm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_disasm.c,v 1.14 2015/03/14 03:38:46 jsg Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.15 2015/06/24 20:50:39 miod Exp $ */ /* $NetBSD: db_disasm.c,v 1.11 1996/05/03 19:41:58 christos Exp $ */ /* @@ -1432,6 +1432,7 @@ db_disasm(db_addr_t loc, boolean_t altfmt) db_printf("$3"); break; case OS: //XXX + len = db_lengths[size]; get_value_inc(imm, loc, len, FALSE); /* offset */ get_value_inc(imm2, loc, 2, FALSE); /* segment */ db_printf("$0x%#x", imm2); diff --git a/sys/arch/i386/i386/db_disasm.c b/sys/arch/i386/i386/db_disasm.c index 5624215030e..029647241e7 100644 --- a/sys/arch/i386/i386/db_disasm.c +++ b/sys/arch/i386/i386/db_disasm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_disasm.c,v 1.19 2014/09/22 04:33:45 brad Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.20 2015/06/24 20:50:39 miod Exp $ */ /* $NetBSD: db_disasm.c,v 1.11 1996/05/03 19:41:58 christos Exp $ */ /* @@ -1382,6 +1382,7 @@ db_disasm(db_addr_t loc, boolean_t altfmt) db_printf("$3"); break; case OS: + len = db_lengths[size]; get_value_inc(imm, loc, len, FALSE); /* offset */ get_value_inc(imm2, loc, 2, FALSE); /* segment */ db_printf("$%s", db_format(tmpfmt, sizeof tmpfmt, -- 2.20.1