summaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
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)