Add debug output to stderr when decode_hex() is called on invalid hex input
This commit is contained in:
@@ -858,7 +858,7 @@ int32_t unhex(char c)
|
|||||||
int32_t hex;
|
int32_t hex;
|
||||||
if ( (hex= _unhex(c)) < 0 )
|
if ( (hex= _unhex(c)) < 0 )
|
||||||
{
|
{
|
||||||
//printf("unhex: illegal hexchar.(%c)\n",c);
|
fprintf(stderr,"unhex: illegal hexchar.(%c)\n",c);
|
||||||
}
|
}
|
||||||
return(hex);
|
return(hex);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user