aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs4
1 files changed, 3 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 7b18190..6db9d48 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2313,7 +2313,9 @@ Pkg_queryformat(pkg, fmt)
if (pkg->h) {
s = headerSprintf(pkg->h, fmt,
rpmTagTable, rpmHeaderFormats, NULL);
- XPUSHs(sv_2mortal(newSVpv(s,0)));
+ if (s) {
+ XPUSHs(sv_2mortal(newSVpv(s,0)));
+ }
}
void