summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-01-10 17:51:51 +0000
committerDavid Robillard <d@drobilla.net>2012-01-10 17:51:51 +0000
commite033bf208233d32bbcc8900f73f4d9301a3abf06 (patch)
treecfc582df227e0057280c10254364f87bc2ddeb63 /src
parentbb733c2283b7f9ffb1f05d57457475adb91bd04a (diff)
downloadlilv-e033bf208233d32bbcc8900f73f4d9301a3abf06.tar.gz
lilv-e033bf208233d32bbcc8900f73f4d9301a3abf06.tar.bz2
lilv-e033bf208233d32bbcc8900f73f4d9301a3abf06.zip
Fix loading state from world model.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3930 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.c b/src/state.c
index 3afd13c..2deb15d 100644
--- a/src/state.c
+++ b/src/state.c
@@ -505,7 +505,7 @@ new_state_from_model(LilvWorld* world,
// Get properties
SordNode* statep = sord_new_uri(world->world, USTR(NS_STATE "state"));
const SordNode* state_node = get_one(model, node, statep);
- if (state) {
+ if (state_node) {
const SordQuad spat = { state_node, NULL, NULL };
SordIter* props = sord_find(model, spat);
FOREACH_MATCH(props) {
@@ -530,7 +530,7 @@ new_state_from_model(LilvWorld* world,
prop.type = map->map(map->handle,
(const char*)sord_node_get_string(type));
} else {
- LILV_ERRORF("Unable to parse blank node property <%p>\n",
+ LILV_ERRORF("Unable to parse blank node property <%s>\n",
sord_node_get_string(p));
}
#ifdef HAVE_LV2_STATE