From bfb4d3284bb70e46681156165ef9316822184bc3 Mon Sep 17 00:00:00 2001 From: Boris Zentner Date: Sun, 22 May 2016 22:01:20 +0200 Subject: [PATCH] nRead is not used on error --- backend/library.c | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/library.c b/backend/library.c index c3fe04f1..38530879 100644 --- a/backend/library.c +++ b/backend/library.c @@ -1241,7 +1241,6 @@ int ZBarcode_Encode_File(struct zint_symbol *symbol, char *filename) { n = fread(buffer + nRead, 1, fileLen - nRead, file); if (ferror(file)) { strcpy(symbol->errtxt, strerror(errno)); - nRead = 0; return ZINT_ERROR_INVALID_DATA; } nRead += n;