summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--buffered_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buffered_file.c b/buffered_file.c
index 94ecbbc..decc3bf 100644
--- a/buffered_file.c
+++ b/buffered_file.c
@@ -176,7 +176,7 @@ static int buffered_close(void *opaque)
while (!s->has_error && s->buffer_size) {
buffered_flush(s);
if (s->freeze_output)
- s->wait_for_unfreeze(s);
+ s->wait_for_unfreeze(s->opaque);
}
ret = s->close(s->opaque);
OpenPOWER on IntegriCloud