Commit d14018ca authored by Nils Goroll's avatar Nils Goroll

Add a NULL VCL_STRANDS

... and document it

The size of 1 for the p array would not be required, it is a safety
measure only.
parent e8155dad
......@@ -56,6 +56,10 @@
const void * const vrt_magic_string_end = &vrt_magic_string_end;
const void * const vrt_magic_string_unset = &vrt_magic_string_unset;
const struct strands *vrt_null_strands = &(struct strands){
.n = 0,
.p = (const char *[1]){NULL}
};
/*--------------------------------------------------------------------*/
......
......@@ -238,6 +238,11 @@ struct strands {
const char **p;
};
/*
* A VCL_STRANDS return value must never be NULL. Use this instead
*/
extern const struct strands *vrt_null_strands;
/***********************************************************************
* VCL_BLOB:
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment