aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.c b/src/node.c
index fce2b4cb..575b2ff0 100644
--- a/src/node.c
+++ b/src/node.c
@@ -41,7 +41,7 @@ SERD_API
SerdNode
serd_node_copy(const SerdNode* node)
{
- if (!node) {
+ if (!node || !node->buf) {
return SERD_NODE_NULL;
}