summaryrefslogtreecommitdiff
path: root/backport-Fix-pointer-bogosity-in-rpmlog-callback.patch
diff options
context:
space:
mode:
Diffstat (limited to 'backport-Fix-pointer-bogosity-in-rpmlog-callback.patch')
-rw-r--r--backport-Fix-pointer-bogosity-in-rpmlog-callback.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/backport-Fix-pointer-bogosity-in-rpmlog-callback.patch b/backport-Fix-pointer-bogosity-in-rpmlog-callback.patch
new file mode 100644
index 0000000..d95cf48
--- /dev/null
+++ b/backport-Fix-pointer-bogosity-in-rpmlog-callback.patch
@@ -0,0 +1,31 @@
+From f8a72afbdb560dc534ca1ff390bc54e01d1144a6 Mon Sep 17 00:00:00 2001
+From: Panu Matilainen <pmatilai@redhat.com>
+Date: Mon, 8 Apr 2024 14:41:48 +0300
+Subject: [PATCH] Fix pointer bogosity in rpmlog callback
+
+Conflict:NA
+Reference:https://github.com/rpm-software-management/rpm/commit/f8a72afbdb560dc534ca1ff390bc54e01d1144a6
+
+rpmlogCallbackData is already a pointer type, we don't want a pointer
+to a pointer for this. Kinda surprising it actually worked, but then
+it's just a void pointer so...
+---
+ rpmio/rpmlog.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/rpmio/rpmlog.c b/rpmio/rpmlog.c
+index 2bb5ab0e3..3ccbe2692 100644
+--- a/rpmio/rpmlog.c
++++ b/rpmio/rpmlog.c
+@@ -382,7 +382,7 @@ static void dolog(struct rpmlogRec_s *rec, int saverec)
+ int cbrc = RPMLOG_DEFAULT;
+ int needexit = 0;
+ FILE *clog = NULL;
+- rpmlogCallbackData *cbdata = NULL;
++ rpmlogCallbackData cbdata = NULL;
+ rpmlogCallback cbfunc = NULL;
+ rpmlogCtx ctx = rpmlogCtxAcquire(saverec);
+
+--
+2.33.0
+