diff options
author | David Robillard <d@drobilla.net> | 2007-10-03 22:21:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-03 22:21:16 +0000 |
commit | 47c8ed163b98b307fa4f7412e59760ccff8e630f (patch) | |
tree | ceae86f8a9010aceb1cdd73ee791e1573d21dc29 /src/pluginclasses.c | |
parent | 26eede34411b65b484970b2e3524ff7419f58305 (diff) | |
download | lilv-47c8ed163b98b307fa4f7412e59760ccff8e630f.tar.gz lilv-47c8ed163b98b307fa4f7412e59760ccff8e630f.tar.bz2 lilv-47c8ed163b98b307fa4f7412e59760ccff8e630f.zip |
Fix Plugin class related bugs.
git-svn-id: http://svn.drobilla.net/lad/slv2@814 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/pluginclasses.c')
-rw-r--r-- | src/pluginclasses.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pluginclasses.c b/src/pluginclasses.c index 1b578f1..26c56d2 100644 --- a/src/pluginclasses.c +++ b/src/pluginclasses.c @@ -63,9 +63,9 @@ slv2_plugin_classes_get_by_uri(SLV2PluginClasses list, const char* uri) i = lower + ((upper - lower) / 2); SLV2PluginClass p = raptor_sequence_get_at(list, i); - - int cmp = strcmp(slv2_plugin_class_get_uri(p), uri); - + + const int cmp = strcmp(slv2_plugin_class_get_uri(p), uri); + if (cmp == 0) return p; else if (cmp > 0) |