diff options
author | David Robillard <d@drobilla.net> | 2011-12-24 22:52:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-24 22:52:09 +0000 |
commit | bfd550f201a9e153cd835e5ad0a0018897d1824a (patch) | |
tree | 025ceb7a6a5ec1f230a61a8e6a4213c5d6ea1680 /src/node.c | |
parent | 15b033080ce2ebdd16fb01073bb5a5cf976527bb (diff) | |
download | serd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |