2010-05-10 Michael Snyder <msnyder@vmware.com>

* utils.c (do_fclose_cleanup) Restore local variable.
This commit is contained in:
Michael Snyder 2010-05-10 17:26:36 +00:00
parent 862edab9b7
commit c02866a09f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-05-10 Michael Snyder <msnyder@vmware.com>
* utils.c (do_fclose_cleanup) Restore local variable.
2010-05-09 Doug Evans <dje@google.com>
* record.c (init_record_core_ops): Rename record_core to record-core.

View File

@ -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. */