From e033bf208233d32bbcc8900f73f4d9301a3abf06 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 10 Jan 2012 17:51:51 +0000 Subject: Fix loading state from world model. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3930 a436a847-0d15-0410-975c-d299462d15a1 --- src/state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.1