]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Guard against a dirindex of -1
authorMichael Schroeder <mls@suse.de>
Wed, 7 Sep 2016 15:14:51 +0000 (17:14 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 7 Sep 2016 15:14:51 +0000 (17:14 +0200)
ext/repo_rpmdb.c

index e6b33216d066d0efa1972b4b72455d451c812175..5ec5f595cb055a0870a254be74737ecb06500093 100644 (file)
@@ -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
        {