diff options
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |