summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-11-04 18:26:41 +0000
committerDavid Robillard <d@drobilla.net>2015-11-04 18:26:41 +0000
commit2a7e7959e5ad711d739c92a76c9701272d835cb9 (patch)
tree739ddd2b27e8b5e222145dcd4ade366b746232f9 /src
parent432be408eb469a73730519d65b145be369cd2795 (diff)
downloadlilv-2a7e7959e5ad711d739c92a76c9701272d835cb9.tar.gz
lilv-2a7e7959e5ad711d739c92a76c9701272d835cb9.tar.bz2
lilv-2a7e7959e5ad711d739c92a76c9701272d835cb9.zip
Fix restoring state from strings
Patch from falktx, fixes #1107. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5809 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c
index 15de044..9bc1d6d 100644
--- a/src/state.c
+++ b/src/state.c
@@ -499,7 +499,7 @@ new_state_from_model(LilvWorld* world,
const SordNode* object = sord_iter_get_node(i, SORD_OBJECT);
const SordNode* graph = sord_iter_get_node(i, SORD_GRAPH);
state->label = lilv_strdup((const char*)sord_node_get_string(object));
- if (!state->dir) {
+ if (!state->dir && graph) {
state->dir = lilv_strdup((const char*)sord_node_get_string(graph));
}
sord_iter_free(i);