* macroexp.c (expand): Avoid uninitialized variable
authorThiago Jung Bauermann <bauerman@br.ibm.com>
Thu, 31 Mar 2011 15:40:44 +0000 (15:40 +0000)
committerThiago Jung Bauermann <bauerman@br.ibm.com>
Thu, 31 Mar 2011 15:40:44 +0000 (15:40 +0000)
compiler warning.

gdb/ChangeLog
gdb/macroexp.c

index 1029fb275c840875d065e2d84613ba91b982f978..f04ed015155fb96eb2df2b53a1edecf3dbdf5994 100644 (file)
@@ -1,3 +1,8 @@
+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.
index a42442417c5067bef3e39c6f2bbff5ad151ed389..6080ee43ea2e454de1ff8ba24d835ab144c1667f 100644 (file)
@@ -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)