makes the default delimiters static to avoid stack allocation
@@ -67,7 +67,7 @@ int
ntl_sn2str(char *str, size_t size, void **p,
struct ntl_str_delimiter * d, sn2str * x)
{
- struct ntl_str_delimiter dx = { '[', ",", "", ']' };
+ static struct ntl_str_delimiter dx = { '[', ",", "", ']' };
if (!d) d = &dx;
const char * start = str;
