summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--RPM4/NEWS2
-rw-r--r--RPM4/src/RPM4.xs4
2 files changed, 4 insertions, 2 deletions
diff --git a/RPM4/NEWS b/RPM4/NEWS
index fd8e257..e8e56b7 100644
--- a/RPM4/NEWS
+++ b/RPM4/NEWS
@@ -1,3 +1,5 @@
+- fix for a random segfault
+
Version 0.25 - 14 December 2011
- disable tests segfaulting in rpmSpecBuild()
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index 2d377ee..43b9368 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -2764,7 +2764,7 @@ Spec_binheader(spec)
PPCODE:
#ifdef RPM4_9_0
rpmSpecPkgIter iter = rpmSpecPkgIterInit(spec);
- while ((pkg = rpmSpecSrcIterNext(iter)) != NULL)
+ while ((pkg = rpmSpecPkgIterNext(iter)) != NULL)
XPUSHs(sv_2mortal(sv_setref_pv(newSVpv("", 0), bless_header, (void *)headerLink(rpmSpecPkgHeader(pkg)))));
#else
for (pkg = spec->packages; pkg != NULL; pkg = pkg->next)
@@ -2806,7 +2806,7 @@ Spec_binrpm(spec)
PPCODE:
#ifdef RPM4_9_0
rpmSpecPkgIter iter = rpmSpecPkgIterInit(spec);
- while ((pkg = rpmSpecSrcIterNext(iter)) != NULL) {
+ while ((pkg = rpmSpecPkgIterNext(iter)) != NULL) {
#else
for(pkg = spec->packages; pkg != NULL; pkg = pkg->next) {
if (pkg->fileList == NULL)