summaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-04 00:57:51 +0000
committerDavid Robillard <d@drobilla.net>2011-02-04 00:57:51 +0000
commita161fecabd48e7b42c313dcc0132c7c5378d9ca2 (patch)
treee9dd7efd2c305c9134bd92d84958d339dfb93150 /src/syntax.c
parent0c7ba16331f4219dba705acd19d0cd3599e4e50d (diff)
downloadsord-a161fecabd48e7b42c313dcc0132c7c5378d9ca2.tar.gz
sord-a161fecabd48e7b42c313dcc0132c7c5378d9ca2.tar.bz2
sord-a161fecabd48e7b42c313dcc0132c7c5378d9ca2.zip
Fix iterating over ranges within a graph.
git-svn-id: http://svn.drobilla.net/sord/trunk@17 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 47e2d52..ac1a766 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -15,6 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <assert.h>
#include <stdlib.h>
#include <string.h>
@@ -164,6 +165,7 @@ event_statement(void* handle,
tup[2] = object_node;
if (state->graph_uri_node) {
+ assert(graph->type == SERD_NOTHING);
tup[3] = state->graph_uri_node;
} else {
tup[3] = (graph && graph->buf)