summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--RPM4/NEWS2
-rw-r--r--RPM4/src/RPM4.xs3
2 files changed, 3 insertions, 2 deletions
diff --git a/RPM4/NEWS b/RPM4/NEWS
index b95a9a4..55df342 100644
--- a/RPM4/NEWS
+++ b/RPM4/NEWS
@@ -1,3 +1,5 @@
+- fix segfault in testsuite
+
Version 0.35 - 1 August 2015
- drop methods only supported in rpm < 4.9
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index 86d1228..659f496 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -1405,8 +1405,7 @@ Ts_new(perlclass, rootdir = NULL)
PREINIT:
rpmts ts = rpmtsCreate();
PPCODE:
- if (rootdir)
- rpmtsSetRootDir(ts, rootdir);
+ rpmtsSetRootDir(ts, rootdir);
mXPUSHs(sv_setref_pv(newSVpvs(""), perlclass, (void *)ts));
void