From ee6436e3c7c6a18236ac2fb461755c2ad71df2cc Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Thu, 31 Mar 2011 15:40:44 +0000 Subject: [PATCH] * macroexp.c (expand): Avoid uninitialized variable compiler warning. --- gdb/ChangeLog | 5 +++++ gdb/macroexp.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1029fb275c8..f04ed015155 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-03-31 Thiago Jung Bauermann + + * macroexp.c (expand): Avoid uninitialized variable + compiler warning. + 2011-03-31 Thiago Jung Bauermann * breakpoint.c (break_range_command): Fix typo in comment. diff --git a/gdb/macroexp.c b/gdb/macroexp.c index a42442417c5..6080ee43ea2 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) -- 2.30.2