From f958d86616ee7c43121f06422bcb6cfd17b7ffeb Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Wed, 30 Aug 2017 15:11:07 +0200 Subject: [PATCH] remember the onload callback like we used too. --- src/module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/module.c b/src/module.c index 828399a..de9e93b 100644 --- a/src/module.c +++ b/src/module.c @@ -104,6 +104,7 @@ kore_module_load(const char *path, const char *onload, int type) TAILQ_INSERT_TAIL(&modules, module, list); if (onload != NULL) { + module->onload = kore_strdup(onload); module->ocb = kore_malloc(sizeof(*module->ocb)); module->ocb->runtime = module->runtime; module->ocb->addr = module->fun->getsym(module, onload);