summaryrefslogtreecommitdiffstats
path: root/jv.c
diff options
context:
space:
mode:
Diffstat (limited to 'jv.c')
-rw-r--r--jv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/jv.c b/jv.c
index 80e3ac91..4c2d1846 100644
--- a/jv.c
+++ b/jv.c
@@ -473,6 +473,7 @@ static jv jvp_string_copy_replace_bad(const char* data, uint32_t length) {
/* Assumes valid UTF8 */
static jv jvp_string_new(const char* data, uint32_t length) {
+ assert(data);
jvp_string* s = jvp_string_alloc(length);
s->length_hashed = length << 1;
memcpy(s->data, data, length);