diff options
author | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2011-03-31 15:40:44 +0000 |
---|---|---|
committer | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2011-03-31 15:40:44 +0000 |
commit | ee6436e3c7c6a18236ac2fb461755c2ad71df2cc (patch) | |
tree | 7375b4070c2df60946ff739346968cc29ed6e4b2 /gdb | |
parent | 423f41a5cb4944ab2cba322fafdf796a8c0d7cde (diff) | |
download | fsf-binutils-gdb-ee6436e3c7c6a18236ac2fb461755c2ad71df2cc.zip fsf-binutils-gdb-ee6436e3c7c6a18236ac2fb461755c2ad71df2cc.tar.gz fsf-binutils-gdb-ee6436e3c7c6a18236ac2fb461755c2ad71df2cc.tar.bz2 |
* macroexp.c (expand): Avoid uninitialized variable
compiler warning.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/macroexp.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1029fb2..f04ed01 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> + * macroexp.c (expand): Avoid uninitialized variable + compiler warning. + +2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> + * breakpoint.c (break_range_command): Fix typo in comment. 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> diff --git a/gdb/macroexp.c b/gdb/macroexp.c index a424424..6080ee4 100644 --- a/gdb/macroexp.c +++ b/gdb/macroexp.c @@ -1183,7 +1183,7 @@ expand (const char *id, struct macro_buffer *argv = NULL; struct macro_buffer substituted; struct macro_buffer substituted_src; - struct macro_buffer va_arg_name; + struct macro_buffer va_arg_name = {0}; int is_varargs = 0; if (def->argc >= 1) |