Browse Source

db_flatstore: init DB API lib in mod_register()

Daniel-Constantin Mierla 14 years ago
parent
commit
cc88761be6
1 changed files with 7 additions and 0 deletions
  1. 7 0
      modules/db_flatstore/flatstore_mod.c

+ 7 - 0
modules/db_flatstore/flatstore_mod.c

@@ -139,6 +139,13 @@ struct module_exports exports = {
 };
 
 
+int mod_register(char *path, int *dlflags, void *p1, void *p2)
+{
+	if(db_api_init()<0)
+		return -1;
+	return 0;
+}
+
 static int mod_init(void)
 {
 	if (flat_delimiter.len != 1) {