Skip to content

Commit

Permalink
SAV reader: Update progress when reading compressed files
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmiller committed May 1, 2019
1 parent 2a117a7 commit 1b8bb46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/spss/readstat_sav_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1b8bb46

Please sign in to comment.