[pacman-dev] [PATCH 4/4] Added initialization code for database siglevel
Kerrick Staley
mail at kerrickstaley.com
Sun Jun 12 06:20:08 EDT 2011
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 at kerrickstaley.com>
---
lib/libalpm/db.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 5f96967..2a36d23 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -375,6 +375,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->siglevel = PM_SIGLEVEL_UNKNOWN;
return db;
}
--
1.7.5.2
More information about the pacman-dev
mailing list