From 909569f8348960d761850dbd3e84daae1f09e73b Mon Sep 17 00:00:00 2001 From: nvt-se Date: Fri, 1 Oct 2010 20:14:14 +0000 Subject: [PATCH] Must check if load_file succeeded --- core/cfs/cfs-coffee.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;