projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ca17d5
)
added some assertions
author
ewt
<devnull@localhost>
Tue, 13 Apr 1999 17:26:43 +0000
(17:26 +0000)
committer
ewt
<devnull@localhost>
Tue, 13 Apr 1999 17:26:43 +0000
(17:26 +0000)
CVS patchset: 2990
CVS date: 1999/04/13 17:26:43
lib/depends.c
patch
|
blob
|
history
diff --git
a/lib/depends.c
b/lib/depends.c
index
ac2bd20
..
ebb45ab
100644
(file)
--- a/
lib/depends.c
+++ b/
lib/depends.c
@@
-975,6
+975,8
@@
int rpmdepOrder(rpmTransactionSet rpmdep) {
j++;
}
}
+ if (j > rpmdep->addedPackages.size) abort();
+
qsort(orderList, rpmdep->addedPackages.size, sizeof(*orderList),
orderListIndexCmp);
@@
-1003,6
+1005,8
@@
int rpmdepOrder(rpmTransactionSet rpmdep) {
}
}
+ if (newOrderCount != rpmdep->orderCount) abort();
+
free(rpmdep->order);
rpmdep->order = newOrder;
rpmdep->orderAlloced = rpmdep->orderCount;