Commit c47b2dbc authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a missing assert.

Spotted by: pprocacci  (Thanks!)

Fixes: #752



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5103 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 1e5f6761
......@@ -365,6 +365,7 @@ vcc_new_source(const char *b, const char *e, const char *name)
sp = calloc(sizeof *sp, 1);
assert(sp != NULL);
sp->name = strdup(name);
AN(sp->name);
sp->b = b;
sp->e = e;
return (sp);
......
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