aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-03-15 13:37:52 -0400
committerDavid Robillard <d@drobilla.net>2016-03-15 13:37:52 -0400
commit530a14b795329e1bd3ecf98a0b0d924bcfdc6736 (patch)
treea5821e01164d7f91f9c4d040a72fa51422cf7fcb /serd
parentb1be377295ab70e4462a02f1299d393bd9e07a17 (diff)
downloadserd-530a14b795329e1bd3ecf98a0b0d924bcfdc6736.tar.gz
serd-530a14b795329e1bd3ecf98a0b0d924bcfdc6736.tar.bz2
serd-530a14b795329e1bd3ecf98a0b0d924bcfdc6736.zip
Use NULL for null pointer constants
Diffstat (limited to 'serd')
-rw-r--r--serd/serd.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 00cc6600..c34eed01 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -317,7 +317,9 @@ serd_base64_decode(const uint8_t* str, size_t len, size_t* size);
@{
*/
-static const SerdURI SERD_URI_NULL = {{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}};
+static const SerdURI SERD_URI_NULL = {
+ {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}
+};
/**
Return the local path for `uri`, or NULL if `uri` is not a file URI.
@@ -396,7 +398,7 @@ serd_uri_serialise_relative(const SerdURI* uri,
@{
*/
-static const SerdNode SERD_NODE_NULL = { 0, 0, 0, 0, SERD_NOTHING };
+static const SerdNode SERD_NODE_NULL = { NULL, 0, 0, 0, SERD_NOTHING };
/**
Make a (shallow) node from `str`.