mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Remove errno value
This commit is contained in:
parent
ab82dc6cfa
commit
67552adee2
@ -308,18 +308,18 @@ void breakup(short int fcs_bit[], unsigned short usps_crc)
|
||||
int imail(struct zint_symbol *symbol, unsigned char source[])
|
||||
{
|
||||
char data_pattern[200];
|
||||
int errno;
|
||||
int error_number;
|
||||
|
||||
errno = 0;
|
||||
error_number = 0;
|
||||
|
||||
if(ustrlen(source) > 32) {
|
||||
strcpy(symbol->errtxt, "Input too long");
|
||||
return ERROR_TOO_LONG;
|
||||
}
|
||||
errno = is_sane(NASET, source);
|
||||
if(errno == ERROR_INVALID_DATA) {
|
||||
error_number = is_sane(NASET, source);
|
||||
if(error_number == ERROR_INVALID_DATA) {
|
||||
strcpy(symbol->errtxt, "Invalid characters in data");
|
||||
return errno;
|
||||
return error_number;
|
||||
}
|
||||
|
||||
int i, j, read;
|
||||
@ -688,5 +688,5 @@ int imail(struct zint_symbol *symbol, unsigned char source[])
|
||||
|
||||
symbol->rows = 3;
|
||||
symbol->width = read - 1;
|
||||
return errno;
|
||||
return error_number;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user