summaryrefslogtreecommitdiffstats
path: root/src/collections.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-03 21:47:19 +0000
committerDavid Robillard <d@drobilla.net>2009-06-03 21:47:19 +0000
commit3ee5e87fc15363c104f08e61ba8ed0da76f97152 (patch)
tree983ddefeeb5194e0a86887244c6b12ddba38ab1d /src/collections.c
parentc220a3ce918293855ed6b53b97dc604573fd031a (diff)
downloadlilv-3ee5e87fc15363c104f08e61ba8ed0da76f97152.tar.gz
lilv-3ee5e87fc15363c104f08e61ba8ed0da76f97152.tar.bz2
lilv-3ee5e87fc15363c104f08e61ba8ed0da76f97152.zip
Consistent error/warning message output.
Fix crash on invalid plugin files. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2086 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/collections.c')
-rw-r--r--src/collections.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collections.c b/src/collections.c
index be4d898..337f0f6 100644
--- a/src/collections.c
+++ b/src/collections.c
@@ -53,7 +53,7 @@ prefix ## _size(CollType coll) \
ElemType \
prefix ## _get_at(CollType coll, unsigned index) \
{ \
- if (index > INT_MAX) \
+ if (!coll || index > INT_MAX) \
return NULL; \
else \
return (ElemType)raptor_sequence_get_at(coll, (int)index); \