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:
Jef Driesen 2014-11-09 19:31:21 +01:00
parent 1fa054b409
commit 3368294018

View File

@ -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);