mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-03 00:19:51 -04:00
nRead is not used on error
This commit is contained in:
parent
7ca22f24a4
commit
bfb4d3284b
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue