From 237c2c01fe1efe52859bb21193938deb7a2b93ac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 27 Apr 2011 23:49:30 +0000 Subject: Fix uninitialized value crash when reading syntax. git-svn-id: http://svn.drobilla.net/sord/trunk@94 3d64ff67-21c5-427c-a301-fe4f08042e5a --- src/syntax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syntax.c b/src/syntax.c index 23c537b..daeec69 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -160,7 +160,7 @@ event_statement(void* handle, if (state->graph_uri_node) { assert(graph->type == SERD_NOTHING); tup[3] = sord_node_copy(state->graph_uri_node); - } else if (graph && graph->buf) { + } else { tup[3] = (graph && graph->buf) ? sord_node_from_serd_node(state, graph, NULL, NULL) : NULL; -- cgit v1.2.1