diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2001-02-19 18:56:11 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2001-02-19 18:56:11 +0000 |
commit | 3017564ad27c2e855ef722c33c97f98b2eff3c63 (patch) | |
tree | 36f761ad5e21748643dc1a107a71cc100cb217e9 /gdb/symfile.c | |
parent | fa58ee119617c4302d6bf94ff751c3ee8e1062cd (diff) | |
download | gdb-3017564ad27c2e855ef722c33c97f98b2eff3c63.zip gdb-3017564ad27c2e855ef722c33c97f98b2eff3c63.tar.gz gdb-3017564ad27c2e855ef722c33c97f98b2eff3c63.tar.bz2 |
2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Andrew Cagney <cagney@b1.cygnus.com>:
* symfile.c (add_symbol_file_command): Always initialize
my_cleanup using a NULL cleanup.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index e4bc6f6..2222d74 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1420,7 +1420,7 @@ add_symbol_file_command (char *args, int from_tty) } sect_opts[SECT_OFF_MAX]; struct section_addr_info section_addrs; - struct cleanup *my_cleanups; + struct cleanup *my_cleanups = make_cleanup (null_cleanup, NULL); dont_repeat (); @@ -1456,7 +1456,7 @@ add_symbol_file_command (char *args, int from_tty) { /* The first argument is the file name. */ filename = tilde_expand (arg); - my_cleanups = make_cleanup (xfree, filename); + make_cleanup (xfree, filename); } else if (argcnt == 1) |