diff --git a/core/cfs/cfs-coffee.c b/core/cfs/cfs-coffee.c index b13f53d7d..fab08ac35 100644 --- a/core/cfs/cfs-coffee.c +++ b/core/cfs/cfs-coffee.c @@ -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;