Don't terminate the application on error.
Terminating the application on error, by calling exit, is not appropriate in a library. An error code should be returned instead.
This commit is contained in:
parent
1fa054b409
commit
3368294018
@ -186,9 +186,8 @@ static int traverse_entry(suunto_eonsteel_parser_t *eon, const unsigned char *p,
|
||||
name += 2;
|
||||
|
||||
if (*name != '<') {
|
||||
fflush(NULL);
|
||||
debug("bad", p, 16);
|
||||
exit(1);
|
||||
return -1;
|
||||
}
|
||||
|
||||
record_type(eon, type, name, textlen-3);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user