From c1554628bed17ca47c8b81537bae158feae56ee9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 3 Jul 2007 04:12:17 +0000 Subject: 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 --- src/plugins.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/plugins.c') 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); -- cgit v1.2.1