diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-11-29 16:59:23 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-11-29 16:59:23 +0000 |
commit | dbf37e6fedb5715addbaa8bf5447742816dbeb85 (patch) | |
tree | 96c459aa8192e8e7b89eea3e881038cadd9f28cd | |
parent | 8a3c7b3be201f1faf0f2dcd3d9882018c9425261 (diff) | |
download | perl-URPM-dbf37e6fedb5715addbaa8bf5447742816dbeb85.tar perl-URPM-dbf37e6fedb5715addbaa8bf5447742816dbeb85.tar.gz perl-URPM-dbf37e6fedb5715addbaa8bf5447742816dbeb85.tar.bz2 perl-URPM-dbf37e6fedb5715addbaa8bf5447742816dbeb85.tar.xz perl-URPM-dbf37e6fedb5715addbaa8bf5447742816dbeb85.zip |
(Trans_add) fix segfault when using --excludepath
-rw-r--r-- | URPM.xs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |