From c47d25d74be9ce1fbbfb8577687d9f37ba38d98b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 3 Jun 2011 12:06:25 -0500 Subject: Add handle attribute to pmdb_t struct This is the first step in a long process to remove our dependence on the global handle variable we currently share in libalpm, with the goal to make things a bit more thread-safe and re-entrant. Signed-off-by: Dan McGee --- lib/libalpm/be_local.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/be_local.c') diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c index fc138e39..c470cbad 100644 --- a/lib/libalpm/be_local.c +++ b/lib/libalpm/be_local.c @@ -952,6 +952,7 @@ pmdb_t *_alpm_db_register_local(void) RET_ERR(PM_ERR_DB_CREATE, NULL); } db->ops = &local_db_ops; + db->handle = handle; handle->db_local = db; return db; -- cgit v1.2.3-24-g4f1b