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);
|
pages, page, name);
|
||||||
|
|
||||||
file = load_file(page, &hdr);
|
file = load_file(page, &hdr);
|
||||||
|
if(file != NULL) {
|
||||||
file->end = 0;
|
file->end = 0;
|
||||||
|
}
|
||||||
COFFEE_WATCHDOG_START();
|
COFFEE_WATCHDOG_START();
|
||||||
|
|
||||||
return file;
|
return file;
|
||||||
|
|
Loading…
Reference in a new issue