]> granicus.if.org Git - transmission/commit
(trunk libT) add a unique key to each tr_bandwidth object, so that when sorting them...
authorJordan Lee <jordan@transmissionbt.com>
Sun, 19 Jun 2011 18:34:10 +0000 (18:34 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sun, 19 Jun 2011 18:34:10 +0000 (18:34 +0000)
commit2362580e0e745fcce6130206130e914c1e9f34d9
treeee3a9f45ca96149a18a5f4a10cd05f929b1fcf33
parentf13485845320a8adbba69efc4fa6fb18b891a5af
(trunk libT) add a unique key to each tr_bandwidth object, so that when sorting them arbitrarily we can use that key rather than their pointer address. Apparently comparing pointers that aren't allocated in the same array is undefined behavior.
libtransmission/bandwidth.c
libtransmission/bandwidth.h