aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-10 17:26:36 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-10 17:26:36 +0000
commitc02866a09f06537feac674c2a62cc605d6aa7368 (patch)
treeb7296a8ae355a28426f2c3b89e02767a76a6654e /gdb/utils.c
parent862edab9b79ef94b34da39b843c9903ab8889293 (diff)
downloadgdb-c02866a09f06537feac674c2a62cc605d6aa7368.zip
gdb-c02866a09f06537feac674c2a62cc605d6aa7368.tar.gz
gdb-c02866a09f06537feac674c2a62cc605d6aa7368.tar.bz2
2010-05-10 Michael Snyder <msnyder@vmware.com>
* utils.c (do_fclose_cleanup) Restore local variable.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 9afb77c..fe1a099 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -266,7 +266,8 @@ make_cleanup_close (int fd)
static void
do_fclose_cleanup (void *arg)
{
- fclose (arg);
+ FILE *file = arg;
+ fclose (file);
}
/* Return a new cleanup that closes FILE. */