]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/libloc.c
stringpool: Make them initializable right from the file
[people/ms/libloc.git] / src / libloc.c
index 58e13cc6429f370f3c05a493b63067c9c4976ce9..667fd7cf2f35466a4b333d4a55608711ce7678e9 100644 (file)
@@ -147,7 +147,7 @@ LOC_EXPORT int loc_load(struct loc_ctx* ctx, const char* path) {
                loc_database_unref(ctx->db);
 
        // Open the new database
-       int r = loc_database_open(ctx, &ctx->db, f);
+       int r = loc_database_new(ctx, &ctx->db, f);
        if (r)
                return r;