summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorKerrick Staley <mail@kerrickstaley.com>2011-06-12 05:20:08 -0500
committerDan McGee <dan@archlinux.org>2011-06-13 19:32:59 -0500
commit01ad3faee934aa805237bf5405e7c74dc1482a17 (patch)
tree93accb48ac4e65a54ef9dd8ec5650f050d29fea1 /lib/libalpm
parentbcd442761b56ca6cce07af2364e724271d917a74 (diff)
downloadpacman-01ad3faee934aa805237bf5405e7c74dc1482a17.tar.xz
Added initialization code for database siglevel
The siglevel field of a newly created pmdb_t struct is now initialized when it is created in _alpm_db_new(). Signed-off-by: Kerrick Staley <mail@kerrickstaley.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/db.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 36cda72b..6db97570 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -331,6 +331,7 @@ pmdb_t *_alpm_db_new(const char *treename, int is_local)
CALLOC(db, 1, sizeof(pmdb_t), RET_ERR(PM_ERR_MEMORY, NULL));
STRDUP(db->treename, treename, RET_ERR(PM_ERR_MEMORY, NULL));
db->is_local = is_local;
+ db->pgp_verify = PM_PGP_VERIFY_UNKNOWN;
return db;
}