Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
moticless committed Dec 10, 2023
1 parent a9089dd commit 00b0b4b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ext/readerFileDesc.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ static RdbStatus readFileDesc(void *data, void *buf, size_t len) {
size_t totalBytesRead = 0;

/* Assist input-buffer if requested 'len' is small and the buffer is empty */
if ((ctx->buffRd == ctx->buffSize) && (len < ASSIST_INPUT_BUFF_THRESHOLD))
IF_NOT_OK_RETURN(fillInputBuffer(ctx));
if ((ctx->buffRd == ctx->buffSize) && (len < ASSIST_INPUT_BUFF_THRESHOLD)) {
RdbStatus res = fillInputBuffer(ctx);
if (res != RDB_STATUS_OK) return res;
}

/* Copy data from input-buffer if not empty */
if (ctx->buffRd < ctx->buffSize) {
Expand Down

0 comments on commit 00b0b4b

Please sign in to comment.