fix: return error code when met unexpected chars
This commit is contained in:
parent
19f91c3ea5
commit
cdaae370de
|
@ -227,7 +227,7 @@ int argo_read_string(ARGO_STRING *s, FILE *f)
|
|||
{
|
||||
if (argo_is_control(c))
|
||||
{
|
||||
print_error_helper();
|
||||
return print_error_helper();
|
||||
}
|
||||
if (c == '"')
|
||||
{
|
||||
|
@ -270,7 +270,7 @@ int argo_read_string(ARGO_STRING *s, FILE *f)
|
|||
c = argo_get_next_char(f);
|
||||
if (!argo_is_hex(c))
|
||||
{
|
||||
print_error_helper();
|
||||
return print_error_helper();
|
||||
}
|
||||
if (argo_is_digit(c))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user