diff options
author | David Robillard <d@drobilla.net> | 2015-11-04 18:26:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-11-04 18:26:41 +0000 |
commit | 2a7e7959e5ad711d739c92a76c9701272d835cb9 (patch) | |
tree | 739ddd2b27e8b5e222145dcd4ade366b746232f9 | |
parent | 432be408eb469a73730519d65b145be369cd2795 (diff) | |
download | lilv-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
-rw-r--r-- | src/state.c | 2 |
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); |