From c02866a09f06537feac674c2a62cc605d6aa7368 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Mon, 10 May 2010 17:26:36 +0000 Subject: 2010-05-10 Michael Snyder * utils.c (do_fclose_cleanup) Restore local variable. --- gdb/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/utils.c') 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. */ -- cgit v1.1