Skip to content
Snippets Groups Projects
Commit 89ba5add authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix the set_malloc/set_alloc fix.

parent aaf72629
No related branches found
No related tags found
No related merge requests found
......@@ -232,8 +232,6 @@ DB_ENV *ldbm_initialize_env(const char *home, int dbcachesize, int *envdirok)
#if DB_VERSION_MINOR >= 3
env->set_alloc( env, ldbm_malloc, NULL, NULL );
#else
env->set_malloc( env, ldbm_malloc );
#endif
env->set_errcall( env, ldbm_db_errcall );
......@@ -318,6 +316,10 @@ ldbm_open( DB_ENV *env, char *name, int rw, int mode, int dbcachesize )
return NULL;
}
#if DB_VERSION_MINOR < 3
ret->set_malloc( ret, ldbm_malloc );
#endif
ret->set_pagesize( ret, DEFAULT_DB_PAGE_SIZE );
/* likely should use ber_mem* routines */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment