From dbf37e6fedb5715addbaa8bf5447742816dbeb85 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 29 Nov 2006 16:59:23 +0000 Subject: (Trans_add) fix segfault when using --excludepath --- URPM.xs | 1 + 1 file changed, 1 insertion(+) diff --git a/URPM.xs b/URPM.xs index 8286e08..aac72eb 100644 --- a/URPM.xs +++ b/URPM.xs @@ -2692,6 +2692,7 @@ Trans_add(trans, pkg, ...) relocations = calloc(2 + av_len(excludepath), sizeof(rpmRelocation)); while (--j >= 0) { SV **e = av_fetch(excludepath, j, 0); + relocations[j].newPath = NULL; if (e != NULL && *e != NULL) { relocations[j].oldPath = SvPV_nolen(*e); } -- cgit v1.2.1