<esi:include src= />
would result in a NUL byte when looking for the next attribute.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2926
d4fa192b-c00b-0410-8231-
f00ffab90ce4
esi_attrib(const struct esi_work *ew, txt *in, txt *attrib, txt *val)
{
+ AN(*in->b);
/* Skip leading blanks */
while(in->b < in->e && isspace(*in->b))
in->b++;
/* skip '=' */
in->b++;
+ if (isspace(*in->b)) {
+ val->e = val->b = in->b;;
+ *val->e = '\0';
+ in->b++;
+ return (1);
+ }
+
/* Value, if any ? */
*val = *in;
if (in->b >= in->e)