summaryrefslogtreecommitdiff
path: root/gdb/macroexp.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-01-15 20:26:02 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-01-15 20:26:02 +0000
commit25670cc8bf2bcf7a9009e0164c581cd6a2acd36e (patch)
tree03657c86fdc97471dce107295c9c4a9e79b090a7 /gdb/macroexp.c
parent47707d0114078e118e1c2123d6f83f7af508db16 (diff)
downloadgdb-25670cc8bf2bcf7a9009e0164c581cd6a2acd36e.tar.gz
* macroexp.c (expand): Initialize argc.
* stabsread.c (read_type): Handle errors from read_args. (read_args): Return NULL for errors.
Diffstat (limited to 'gdb/macroexp.c')
-rw-r--r--gdb/macroexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/macroexp.c b/gdb/macroexp.c
index f5dc40c0cab..a7ca6e04eca 100644
--- a/gdb/macroexp.c
+++ b/gdb/macroexp.c
@@ -927,7 +927,7 @@ expand (const char *id,
else if (def->kind == macro_function_like)
{
struct cleanup *back_to = make_cleanup (null_cleanup, 0);
- int argc;
+ int argc = 0;
struct macro_buffer *argv = NULL;
struct macro_buffer substituted;
struct macro_buffer substituted_src;