summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-06-24 20:50:40 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-06-24 20:50:40 +0000
commit2af7b81d0d40af92b3fdf97938494d6d414d7c79 (patch)
tree0e9de16b16b9995fa38fb872eb020947a35b5aeb /sys
parent313e7db7b8c9702cb44d97461a9c2a7d5d0e3bde (diff)
Uninitialized variables; pedro@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/db_disasm.c3
-rw-r--r--sys/arch/i386/i386/db_disasm.c3
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,