aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-17 09:08:33 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-17 09:08:33 +0000
commitbb6135fadcc239f8c226b406877b6b4db1ef981f (patch)
tree2ec50647b7b9c885d7abb94687d0b7f746b88609
parent8133a2c956733ee12a2a02f1b142844b449e1c4e (diff)
downloadperl-URPM-bb6135fadcc239f8c226b406877b6b4db1ef981f.tar
perl-URPM-bb6135fadcc239f8c226b406877b6b4db1ef981f.tar.gz
perl-URPM-bb6135fadcc239f8c226b406877b6b4db1ef981f.tar.bz2
perl-URPM-bb6135fadcc239f8c226b406877b6b4db1ef981f.tar.xz
perl-URPM-bb6135fadcc239f8c226b406877b6b4db1ef981f.zip
don't crash when header is not available (fixes synthesis.t with rpm 4.4.2.2)
(backport from HEAD)
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 9ea14b5..4cda150 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -447,7 +447,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;