From 1b8bb4646960def752dc89debd3fb01500e7af11 Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Wed, 1 May 2019 09:28:18 -0400 Subject: [PATCH] SAV reader: Update progress when reading compressed files --- src/spss/readstat_sav_read.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/spss/readstat_sav_read.c b/src/spss/readstat_sav_read.c index 1f143137..21adb8b9 100644 --- a/src/spss/readstat_sav_read.c +++ b/src/spss/readstat_sav_read.c @@ -845,6 +845,10 @@ static readstat_error_t sav_read_compressed_data(sav_ctx_t *ctx, } while (1) { + retval = sav_update_progress(ctx); + if (retval != READSTAT_OK) + goto done; + buffer_used = io->read(buffer, sizeof(buffer), io->io_ctx); if (buffer_used == -1 || buffer_used == 0 || (buffer_used % 8) != 0) goto done;