[packages/rpm-specdump] - fix tag getter for rpm5
baggins
baggins at pld-linux.org
Mon Oct 19 14:19:46 CEST 2020
commit 7b6a4c16e1027888332ecbd46a7c6fe7eff09117
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Oct 19 14:19:17 2020 +0200
- fix tag getter for rpm5
rpm-specdump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rpm-specdump.c b/rpm-specdump.c
index fc043c7..fcc7b96 100644
--- a/rpm-specdump.c
+++ b/rpm-specdump.c
@@ -302,7 +302,7 @@ Spec s;
rpmtd td = rpmtdNew();
rpmTagVal tag;
#else
-#define GET_TAG(t) he->tag = (rpmTag)t; he = (HE_s*)memset(alloca(sizeof(*he)), 0, sizeof(*he)); rc = headerGet(h, he, 0);
+#define GET_TAG(t) he = (HE_s*)memset(alloca(sizeof(*he)), 0, sizeof(*he)); he->tag = (rpmTag)t; rc = headerGet(h, he, 0);
#define TAG_VALUE (char *)he->p.ptr
rpmts ts = rpmtsCreate();
if (parseSpec(ts, args.specfile, NULL, 0, NULL, NULL, 1, 1, 0) != 0) {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-specdump.git/commitdiff/842c75827f85bcaf8a355c02c0c05da6becb602a
More information about the pld-cvs-commit
mailing list