]> git.ipfire.org Git - pakfire.git/commitdiff
db: Use correct value for digest types
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jul 2022 12:35:05 +0000 (12:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jul 2022 12:35:05 +0000 (12:35 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/db.c

index 59ced0c39e21a8ec89eb454e89d7ab96093c53ee..828518e1db52096fe6b4fd50a351d0a037a8d52d 100644 (file)
@@ -1019,7 +1019,7 @@ static int pakfire_db_file_add_digests(struct pakfire_db* db, unsigned long id,
                }
 
                // Bind the type
-               r = sqlite3_bind_int64(stmt, 2, (int64_t)type);
+               r = sqlite3_bind_int64(stmt, 2, (int64_t)*type);
                if (r) {
                        ERROR(db->pakfire, "Could not bind type: %s\n", sqlite3_errmsg(db->handle));
                        goto ERROR;