diff options
Diffstat (limited to 'lib/module.c')
-rw-r--r-- | lib/module.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/module.c b/lib/module.c index 2427c7b6..df9a1f5e 100644 --- a/lib/module.c +++ b/lib/module.c @@ -103,10 +103,8 @@ int kr_module_load(struct kr_module *module, const char *name, const char *path) return kr_error(EINVAL); } - /* Initialize, keep userdata */ - void *data = module->data; + /* Initialize */ memset(module, 0, sizeof(struct kr_module)); - module->data = data; module->name = strdup(name); if (module->name == NULL) { return kr_error(ENOMEM); |