summaryrefslogtreecommitdiff
path: root/rpmdb/db3.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpmdb/db3.c')
-rw-r--r--rpmdb/db3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdb/db3.c b/rpmdb/db3.c
index bcd479cec..1ba3da9e7 100644
--- a/rpmdb/db3.c
+++ b/rpmdb/db3.c
@@ -570,7 +570,7 @@ static int db3byteswapped(dbiIndex dbi) /*@*/
if (db != NULL) {
#if DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 3 && DB_VERSION_PATCH == 11
- int isswapped;
+ int isswapped = 0;
rc = db->get_byteswapped(db, &isswapped);
if (rc == 0)
rc = isswapped;
@@ -1050,7 +1050,7 @@ static int db3open(/*@keep@*/ rpmdb rpmdb, int rpmtag, dbiIndex * dbip)
if (rc == 0 && dbi->dbi_type == DB_UNKNOWN) {
#if DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 3 && DB_VERSION_PATCH == 11
- DBTYPE dbi_type;
+ DBTYPE dbi_type = DB_UNKNOWN;
xx = db->get_type(db, &dbi_type);
if (xx == 0)
dbi->dbi_type = dbi_type;