diff options
author | Andrew Stubbs <andrew.stubbs@st.com> | 2006-07-06 14:00:48 +0000 |
---|---|---|
committer | Andrew Stubbs <andrew.stubbs@st.com> | 2006-07-06 14:00:48 +0000 |
commit | 6fadd227e98c5f167d8491edf3be1700121d2b8e (patch) | |
tree | ca4f400d509fe593d588eceb8347e11d7fb97d05 /gdb/parse.c | |
parent | c49786950472f3bac182c5476f421dfabff86a2e (diff) | |
download | gdb-6fadd227e98c5f167d8491edf3be1700121d2b8e.tar.gz |
2006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
* 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.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |