summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-07-26 09:29:48 +0000
committerDavid Robillard <d@drobilla.net>2007-07-26 09:29:48 +0000
commit6a589a9e4980fbd924c7df343d449a7886091dda (patch)
tree438e62c497f1ad2b76e9f1cf06dc797d16a0559e
parent66a7b635331baaa483ba3cc27aef6c244f9a98df (diff)
downloadlilv-6a589a9e4980fbd924c7df343d449a7886091dda.tar.gz
lilv-6a589a9e4980fbd924c7df343d449a7886091dda.tar.bz2
lilv-6a589a9e4980fbd924c7df343d449a7886091dda.zip
Fix possible missed plugin search when list size == 1.
git-svn-id: http://svn.drobilla.net/lad/slv2@633 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/pluginclasses.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/pluginclasses.c b/src/pluginclasses.c
index cac944c..5cf56ec 100644
--- a/src/pluginclasses.c
+++ b/src/pluginclasses.c
@@ -58,9 +58,6 @@ slv2_plugin_classes_get_by_uri(SLV2PluginClasses 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);