aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-14 10:04:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-14 10:04:27 +0000
commit9012e38cad2b0bca32588e02198ceced32c219d5 (patch)
treef20492a13c89bd199166972c9c834821cdc9064d
parentc7ca3fb1600bbe15b507f0ecf0f7f3007da25fab (diff)
downloadperl-URPM-9012e38cad2b0bca32588e02198ceced32c219d5.tar
perl-URPM-9012e38cad2b0bca32588e02198ceced32c219d5.tar.gz
perl-URPM-9012e38cad2b0bca32588e02198ceced32c219d5.tar.bz2
perl-URPM-9012e38cad2b0bca32588e02198ceced32c219d5.tar.xz
perl-URPM-9012e38cad2b0bca32588e02198ceced32c219d5.zip
don't crash when header is not available (fixes synthesis.t with rpm 4.4.2.2)
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index d294bc2..d1c9d8e 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -469,7 +469,7 @@ return_list_str(char *s, Header header, int_32 tag_name, int_32 tag_flags, int_3
static int
xpush_simple_list_str(Header header, int_32 tag_name) {
dSP;
- {
+ if (header) {
int_32 type, c;
char **list = NULL;
int i;