From: Andrew Stubbs Date: Thu, 6 Jul 2006 14:00:48 +0000 (+0000) Subject: 2006-07-06 Andrew Stubbs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09153d5527afdd185c2a6e4660257a559c2d7ccb;p=binutils-gdb.git 2006-07-06 Andrew Stubbs * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type, write_exp_elt_intern): Zero initialize tmp. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5f81508ea34..6f7eb2e6f6d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2006-07-06 Andrew Stubbs + + * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block + write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type, + write_exp_elt_intern): Zero initialize tmp. + 2006-07-05 Daniel Jacobowitz * remote.c (remote_xfer_partial): Remove KOD support. diff --git a/gdb/parse.c b/gdb/parse.c index e0b5b70b7c7..5d949fd6e2a 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -191,6 +191,7 @@ void write_exp_elt_opcode (enum exp_opcode expelt) { union exp_element tmp; + memset (&tmp, 0, sizeof (union exp_element)); tmp.opcode = expelt; @@ -201,6 +202,7 @@ void write_exp_elt_sym (struct symbol *expelt) { union exp_element tmp; + memset (&tmp, 0, sizeof (union exp_element)); tmp.symbol = expelt; @@ -211,6 +213,7 @@ void write_exp_elt_block (struct block *b) { union exp_element tmp; + memset (&tmp, 0, sizeof (union exp_element)); tmp.block = b; write_exp_elt (tmp); } @@ -219,6 +222,7 @@ void write_exp_elt_longcst (LONGEST expelt) { union exp_element tmp; + memset (&tmp, 0, sizeof (union exp_element)); tmp.longconst = expelt; @@ -229,6 +233,7 @@ void write_exp_elt_dblcst (DOUBLEST expelt) { union exp_element tmp; + memset (&tmp, 0, sizeof (union exp_element)); tmp.doubleconst = expelt; @@ -239,6 +244,7 @@ void write_exp_elt_type (struct type *expelt) { union exp_element tmp; + memset (&tmp, 0, sizeof (union exp_element)); tmp.type = expelt; @@ -249,6 +255,7 @@ void write_exp_elt_intern (struct internalvar *expelt) { union exp_element tmp; + memset (&tmp, 0, sizeof (union exp_element)); tmp.internalvar = expelt;