AmendHub

Download:

jcs

/

subtext

/

amendments

/

53

bile: Make bile_read_alloc set pointer to NULL on read failure


jcs made amendment 53 over 2 years ago
--- bile.c Tue Jan 11 19:28:31 2022 +++ bile.c Tue Jan 18 16:50:07 2022 @@ -427,6 +427,7 @@ bile_read_alloc(struct bile *bile, const OSType type, o = bile_find(bile, type, id); if (o == NULL) { _bile_error = bile->last_error = -1; + *data = NULL; return 0; }