summaryrefslogtreecommitdiffstats
path: root/src/instance.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-04-27 00:31:48 +0000
committerDavid Robillard <d@drobilla.net>2014-04-27 00:31:48 +0000
commit2eb44a56f6e966243dcce8a232e4b46f82911cd3 (patch)
tree679f0fa211b71b3238b8f2d37812f4685f604e99 /src/instance.c
parentdec365731d81c65e605843a4cd5d4c6ac2bf2923 (diff)
downloadsuil-2eb44a56f6e966243dcce8a232e4b46f82911cd3.tar.gz
suil-2eb44a56f6e966243dcce8a232e4b46f82911cd3.tar.bz2
suil-2eb44a56f6e966243dcce8a232e4b46f82911cd3.zip
Tolerate passing NULL container type to open_wrapper.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5376 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/instance.c')
-rw-r--r--src/instance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/instance.c b/src/instance.c
index b72f65f..d7d1932 100644
--- a/src/instance.c
+++ b/src/instance.c
@@ -62,7 +62,7 @@ open_wrapper(SuilHost* host,
LV2_Feature*** features,
unsigned n_features)
{
- if (!strcmp(container_type_uri, ui_type_uri)) {
+ if (!container_type_uri || !strcmp(container_type_uri, ui_type_uri)) {
return NULL;
}