]> git.pld-linux.org Git - packages/rpm-specdump.git/commitdiff
- fix tag getter for rpm5
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 19 Oct 2020 12:19:17 +0000 (14:19 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 19 Oct 2020 12:19:17 +0000 (14:19 +0200)
rpm-specdump.c

index fc043c74a5e6bf9889838f7deb1f49678104b9c0..fcc7b96a6b02643235ffb3039bc6f4d6890cc694 100644 (file)
@@ -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) {
This page took 0.057432 seconds and 4 git commands to generate.