summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-01-09 17:43:43 -0500
committerDavid Robillard <d@drobilla.net>2024-01-09 17:43:43 -0500
commitb3035563fdb6597354179093c7024639b9a7148e (patch)
tree99057ad0834f060ff5421ff6013f22eead299dca /src
parent19a670806390d1980f3471710ba3a5af3d0bd64b (diff)
downloadsratom-b3035563fdb6597354179093c7024639b9a7148e.tar.gz
sratom-b3035563fdb6597354179093c7024639b9a7148e.tar.bz2
sratom-b3035563fdb6597354179093c7024639b9a7148e.zip
Enable clang nullability checks
Diffstat (limited to 'src')
-rw-r--r--src/sratom.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sratom.c b/src/sratom.c
index 447abef..da6fae4 100644
--- a/src/sratom.c
+++ b/src/sratom.c
@@ -1,4 +1,4 @@
-// Copyright 2012-2021 David Robillard <d@drobilla.net>
+// Copyright 2012-2024 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
#include "sratom/sratom.h"
@@ -107,7 +107,7 @@ sratom_set_sink(Sratom* sratom,
serd_node_free(&sratom->base_uri);
sratom->base_uri =
serd_node_new_uri_from_string(USTR(base_uri), NULL, NULL);
- serd_uri_parse(sratom->base_uri.buf, &sratom->base);
+ serd_uri_parse((const uint8_t*)sratom->base_uri.buf, &sratom->base);
}
sratom->write_statement = sink;
sratom->end_anon = end_sink;
@@ -801,7 +801,9 @@ read_node(Sratom* sratom,
SerdNode rel =
serd_node_new_relative_uri(&uri, &sratom->base, &sratom->base, NULL);
- uint8_t* path = serd_file_uri_parse(rel.buf, NULL);
+
+ uint8_t* const path = serd_file_uri_parse((const uint8_t*)rel.buf, NULL);
+
if (path) {
lv2_atom_forge_path(
forge, (const char*)path, strlen((const char*)path));