From 00b0b4b32722f788751991d3208cb33036967b32 Mon Sep 17 00:00:00 2001 From: moticless Date: Sun, 10 Dec 2023 09:05:04 +0200 Subject: [PATCH] fix compilation --- src/ext/readerFileDesc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ext/readerFileDesc.c b/src/ext/readerFileDesc.c index ab42043..5242b03 100644 --- a/src/ext/readerFileDesc.c +++ b/src/ext/readerFileDesc.c @@ -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) {