diff --git a/src/strext.c b/src/strext.c index 53a55b4..31cce4f 100644 --- a/src/strext.c +++ b/src/strext.c @@ -190,6 +190,11 @@ int strbld_str(str_builder *sb, const char *str, size_t len) return 0; } + if (str == 0) { + // NOTE: Should this be a fail? + return 0; + } + if (len == 0) { len = strlen(str); }