summaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2010-05-10 17:26:36 +0000
committerMichael Snyder <msnyder@specifix.com>2010-05-10 17:26:36 +0000
commitf2bb916797ee80d8a9a4b1bd6b0a656a16071727 (patch)
tree6742aae3d51507ae8d7e84445bc675115daef3e9 /gdb/utils.c
parent7c38f6982f9a314648c3d92392cbdc1e048ea281 (diff)
downloadgdb-f2bb916797ee80d8a9a4b1bd6b0a656a16071727.tar.gz
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 9afb77c68d6..fe1a099ef1d 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. */