From 9012e38cad2b0bca32588e02198ceced32c219d5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 14 Dec 2007 10:04:27 +0000 Subject: don't crash when header is not available (fixes synthesis.t with rpm 4.4.2.2) --- URPM.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1