aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-24 22:52:09 +0000
committerDavid Robillard <d@drobilla.net>2011-12-24 22:52:09 +0000
commitbfd550f201a9e153cd835e5ad0a0018897d1824a (patch)
tree025ceb7a6a5ec1f230a61a8e6a4213c5d6ea1680 /src/node.c
parent15b033080ce2ebdd16fb01073bb5a5cf976527bb (diff)
downloadserd-bfd550f201a9e153cd835e5ad0a0018897d1824a.tar.gz
serd-bfd550f201a9e153cd835e5ad0a0018897d1824a.tar.bz2
serd-bfd550f201a9e153cd835e5ad0a0018897d1824a.zip
Remove pointless check.
Gracefully handle NULL strings in serd_node_new_uri_from_string(). git-svn-id: http://svn.drobilla.net/serd/trunk@272 490d8e77-9747-427b-9fa3-0b8f29cee8a0
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 56d16d89..fbcbe1f5 100644
--- a/src/node.c
+++ b/src/node.c
@@ -102,7 +102,7 @@ serd_node_new_uri_from_string(const uint8_t* str,
const SerdURI* base,
SerdURI* out)
{
- if (str[0] == '\0') {
+ if (!str || str[0] == '\0') {
return serd_node_new_uri(base, NULL, out); // Empty URI => Base URI
} else {
SerdURI uri;