summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/module.c4
-rw-r--r--lib/module.h2
2 files changed, 2 insertions, 4 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);
diff --git a/lib/module.h b/lib/module.h
index 507b2df1..4dd5a490 100644
--- a/lib/module.h
+++ b/lib/module.h
@@ -86,7 +86,7 @@ struct kr_prop {
/**
* Load a C module instance into memory. And call its init().
*
- * @param module module structure. Will be overwritten except for ->data on success.
+ * @param module module structure. Will be overwritten.
* @param name module name
* @param path module search path
* @return 0 or an error