2010-05-10 Michael Snyder <msnyder@vmware.com>
* utils.c (do_fclose_cleanup) Restore local variable.
This commit is contained in:
parent
862edab9b7
commit
c02866a09f
|
@ -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>
|
2010-05-09 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* record.c (init_record_core_ops): Rename record_core to record-core.
|
* record.c (init_record_core_ops): Rename record_core to record-core.
|
||||||
|
|
|
@ -266,7 +266,8 @@ make_cleanup_close (int fd)
|
||||||
static void
|
static void
|
||||||
do_fclose_cleanup (void *arg)
|
do_fclose_cleanup (void *arg)
|
||||||
{
|
{
|
||||||
fclose (arg);
|
FILE *file = arg;
|
||||||
|
fclose (file);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return a new cleanup that closes FILE. */
|
/* Return a new cleanup that closes FILE. */
|
||||||
|
|
Loading…
Reference in New Issue