From: Michael Schroeder Date: Wed, 7 Sep 2016 15:14:51 +0000 (+0200) Subject: Guard against a dirindex of -1 X-Git-Tag: 0.6.24~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60ce5d005c91524f922977d3ccfedafa36a1c558;p=thirdparty%2Flibsolv.git Guard against a dirindex of -1 --- diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c index e6b33216..5ec5f595 100644 --- a/ext/repo_rpmdb.c +++ b/ext/repo_rpmdb.c @@ -835,7 +835,7 @@ addfilelist(Repodata *data, Id handle, RpmHead *rpmhead, int flags) Id did; char *b = bn[i]; - if (di[i] == lastdii) + if (lastdid && di[i] == lastdii) did = lastdid; else {