diff options
author | David Robillard <d@drobilla.net> | 2009-06-09 20:51:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-06-09 20:51:14 +0000 |
commit | ebaeb659cd43958f91bd93b29e2e0948f983c05b (patch) | |
tree | ffa8f3e44ecf67e195db84ad1ef5cdbe919c0371 | |
parent | 389942bd72834035d6df9c4ddc4a71e4131d396b (diff) | |
download | lilv-ebaeb659cd43958f91bd93b29e2e0948f983c05b.tar.gz lilv-ebaeb659cd43958f91bd93b29e2e0948f983c05b.tar.bz2 lilv-ebaeb659cd43958f91bd93b29e2e0948f983c05b.zip |
Fix crash for illegal plugins with invalid ports.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2094 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c index 26168e2..9564336 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -586,7 +586,7 @@ slv2_plugin_get_num_ports_of_class(SLV2Plugin p, for (unsigned i=0; i < p->num_ports; ++i) { SLV2Port port = p->ports[i]; - if (!slv2_port_is_a(p, port, class_1)) + if (!port || !slv2_port_is_a(p, port, class_1)) continue; va_start(args, class_1); |