kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit ef4289689f086a51f0beb89e115f155c43b0ba57
parent d22405cea7c809fc70cd91305dd495ae39a3648f
Author: Joris Vink <joris@coders.se>
Date:   Sat, 11 Jan 2014 01:35:44 +0100

Only call module onload if its present

Diffstat:
src/module.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/module.c b/src/module.c @@ -84,7 +84,8 @@ kore_module_reload(void) if (module->mtime == st.st_mtime) continue; - module->ocb(KORE_MODULE_UNLOAD); + if (module->ocb != NULL) + module->ocb(KORE_MODULE_UNLOAD); module->mtime = st.st_mtime; if (dlclose(module->handle))