From 1d294edb3afd5871edcca985cc02480fdb47dcb3f7ef7d29a056dce5edc3a41b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Schr=C3=B6der?= Date: Fri, 27 Nov 2020 13:15:25 +0000 Subject: [PATCH] Initialize uh/uhlen OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=563 --- nextiteratorheaderblob.diff | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/nextiteratorheaderblob.diff b/nextiteratorheaderblob.diff index 1e46c5b..50ffa59 100644 --- a/nextiteratorheaderblob.diff +++ b/nextiteratorheaderblob.diff @@ -1,6 +1,6 @@ ---- ./lib/rpmdb.c.orig 2020-09-30 15:25:13.297438656 +0000 -+++ ./lib/rpmdb.c 2020-09-30 15:27:31.981108826 +0000 -@@ -2681,6 +2681,46 @@ int rpmdbCtrl(rpmdb db, rpmdbCtrlOp ctrl +--- ./lib/rpmdb.c.orig 2020-11-27 13:09:17.968992873 +0000 ++++ ./lib/rpmdb.c 2020-11-27 13:14:21.524165780 +0000 +@@ -2679,6 +2679,48 @@ int rpmdbCtrl(rpmdb db, rpmdbCtrlOp ctrl return dbctrl ? dbCtrl(db, dbctrl) : 1; } @@ -17,6 +17,8 @@ + if (mi->mi_dbc == NULL) + mi->mi_dbc = dbiCursorInit(dbi, mi->mi_cflags); + miFreeHeader(mi, dbi); ++ uh = NULL; ++ uhlen = 0; + do { + if (mi->mi_set) { + if (!(mi->mi_setx < mi->mi_set->count)) @@ -47,8 +49,8 @@ char *rpmdbCookie(rpmdb db) { void *cookie = NULL; ---- ./lib/rpmdb.h.orig 2020-09-30 15:24:56.821477848 +0000 -+++ ./lib/rpmdb.h 2020-09-30 15:25:13.297438656 +0000 +--- ./lib/rpmdb.h.orig 2020-11-27 13:09:17.968992873 +0000 ++++ ./lib/rpmdb.h 2020-11-27 13:09:36.352942782 +0000 @@ -253,6 +253,14 @@ int rpmdbStat(const char *prefix, struct */ int rpmdbFStat(rpmdb db, struct stat *statbuf);