diff options
author | David Robillard <d@drobilla.net> | 2007-07-03 04:12:17 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-07-03 04:12:17 +0000 |
commit | c1554628bed17ca47c8b81537bae158feae56ee9 (patch) | |
tree | 2296587088d4f4fa8f7377f9c8f17c0c1299c248 /src/plugins.c | |
parent | 295d44114978522b2e9109db4dd2c2bfcdcb78b9 (diff) | |
download | lilv-c1554628bed17ca47c8b81537bae158feae56ee9.tar.gz lilv-c1554628bed17ca47c8b81537bae158feae56ee9.tar.bz2 lilv-c1554628bed17ca47c8b81537bae158feae56ee9.zip |
Fix binary search bug which never found an element in lists of size 1, resulting in duplicate/broken records for the first plugin found.
git-svn-id: http://svn.drobilla.net/lad/slv2@558 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugins.c')
-rw-r--r-- | src/plugins.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins.c b/src/plugins.c index 64f8430..5c2e7ae 100644 --- a/src/plugins.c +++ b/src/plugins.c @@ -281,9 +281,6 @@ slv2_plugins_get_by_uri(SLV2Plugins list, const char* uri) int upper = raptor_sequence_size(list) - 1; int i; - if (upper == 0) - return NULL; - while (upper >= lower) { i = lower + ((upper - lower) / 2); |