From 4c41013eeb43ccdcef1be37274d15721ec19799d Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Sun, 26 Sep 2010 18:45:34 +0200 Subject: [PATCH] Fix segfault in rpmdeps (RhBug:637357) --- build/rpmfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/rpmfc.c b/build/rpmfc.c index 4c59a95..f8494c8 100644 --- a/build/rpmfc.c +++ b/build/rpmfc.c @@ -765,7 +765,7 @@ rpmRC rpmfcApply(rpmfc fc) int xx = 0; /* Generate package and per-file dependencies. */ - for (fc->ix = 0; fc->fn[fc->ix] != NULL; fc->ix++) { + for (fc->ix = 0; fc->fn != NULL && fc->fn[fc->ix] != NULL; fc->ix++) { for (ARGV_t fattr = fc->fattrs[fc->ix]; fattr && *fattr; fattr++) { xx += rpmfcHelper(fc, 'P', *fattr); xx += rpmfcHelper(fc, 'R', *fattr); -- 2.7.4