aboutsummaryrefslogtreecommitdiffstats
path: root/src/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/string.c b/src/string.c
index 52fb4a91..b2946aac 100644
--- a/src/string.c
+++ b/src/string.c
@@ -91,6 +91,8 @@ serd_strlen(const uint8_t* const str,
size_t* const n_bytes,
SerdNodeFlags* const flags)
{
+ assert(str);
+
size_t n_chars = 0;
size_t i = 0;
SerdNodeFlags f = 0;