Must check if load_file succeeded
This commit is contained in:
parent
d8165d30d5
commit
909569f834
|
@ -645,7 +645,9 @@ reserve(const char *name, coffee_page_t pages,
|
|||
pages, page, name);
|
||||
|
||||
file = load_file(page, &hdr);
|
||||
file->end = 0;
|
||||
if(file != NULL) {
|
||||
file->end = 0;
|
||||
}
|
||||
COFFEE_WATCHDOG_START();
|
||||
|
||||
return file;
|
||||
|
|
Loading…
Reference in a new issue