remember the onload callback like we used too.

This commit is contained in:
Joris Vink 2017-08-30 15:11:07 +02:00
parent 03d5e4852b
commit f958d86616
1 changed files with 1 additions and 0 deletions

View File

@ -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);