Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dev/dtrace/i386 Fix uninitialized variab...



details:   https://anonhg.NetBSD.org/src/rev/56ce4fbb6b10
branches:  trunk
changeset: 767514:56ce4fbb6b10
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Jul 20 19:51:57 2011 +0000

description:
Fix uninitialized variables reported by GCC 4.5.

diffstat:

 external/cddl/osnet/dev/dtrace/i386/dis_tables.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r e880100f868c -r 56ce4fbb6b10 external/cddl/osnet/dev/dtrace/i386/dis_tables.c
--- a/external/cddl/osnet/dev/dtrace/i386/dis_tables.c  Wed Jul 20 19:27:53 2011 +0000
+++ b/external/cddl/osnet/dev/dtrace/i386/dis_tables.c  Wed Jul 20 19:51:57 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dis_tables.c,v 1.2 2010/02/21 01:46:33 darran Exp $    */
+/*     $NetBSD: dis_tables.c,v 1.3 2011/07/20 19:51:57 tron Exp $      */
 
 /*
  * CDDL HEADER START
@@ -1716,9 +1716,9 @@
        uint_t opcode2;         /* low nibble of 1st byte */
        uint_t opcode3;         /* extra opcode bits usually from ModRM byte */
        uint_t opcode4;         /* high nibble of 2nd byte */
-       uint_t opcode5;         /* low nibble of 2ne byte */
+       uint_t opcode5 = 0xff;  /* low nibble of 2nd byte */
        uint_t opcode6;         /* high nibble of 3rd byte */
-       uint_t opcode7;         /* low nibble of 3rd byte */
+       uint_t opcode7 = 0xff;  /* low nibble of 3rd byte */
        uint_t opcode_bytes = 1;
 
        /*



Home | Main Index | Thread Index | Old Index