diff options
author | David Robillard <d@drobilla.net> | 2011-04-27 23:49:30 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-27 23:49:30 +0000 |
commit | 237c2c01fe1efe52859bb21193938deb7a2b93ac (patch) | |
tree | 733a8f024f3b0b9955de73afec544b56da5e6c9e | |
parent | 15e2ea280f63d1cfac38918dd00a44fdab6d8989 (diff) | |
download | sord-237c2c01fe1efe52859bb21193938deb7a2b93ac.tar.gz sord-237c2c01fe1efe52859bb21193938deb7a2b93ac.tar.bz2 sord-237c2c01fe1efe52859bb21193938deb7a2b93ac.zip |
Fix uninitialized value crash when reading syntax.
git-svn-id: http://svn.drobilla.net/sord/trunk@94 3d64ff67-21c5-427c-a301-fe4f08042e5a
-rw-r--r-- | src/syntax.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |