From c5c4a6e935eecc2d2dac7bb9cccd36057b8dc123 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 Dec 2011 02:41:56 +0000 Subject: Add LilvState API for handling plugin state. This makes it simple to save and restore plugin state both in memory and on disk, as well as save presets in a host-sharable way since the disk format is identical to the LV2 presets format. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3899 a436a847-0d15-0410-975c-d299462d15a1 --- src/zix/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zix') diff --git a/src/zix/tree.c b/src/zix/tree.c index 1be9227..1189230 100644 --- a/src/zix/tree.c +++ b/src/zix/tree.c @@ -461,7 +461,7 @@ ZIX_API void* zix_tree_get(ZixTreeIter* ti) { - return ti->data; + return ti ? ti->data : NULL; } ZIX_API -- cgit v1.2.1