summaryrefslogtreecommitdiff
path: root/backport-Fix-pointer-bogosity-in-rpmlog-callback.patch
blob: d95cf48b7fd687c27e94e149016641b3d24f6232 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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