r5103 - trunk/varnish-cache/lib/libvcl

phk at varnish-cache.org phk at varnish-cache.org
Fri Aug 13 12:19:40 CEST 2010


Author: phk
Date: 2010-08-13 12:19:40 +0200 (Fri, 13 Aug 2010)
New Revision: 5103

Modified:
   trunk/varnish-cache/lib/libvcl/vcc_compile.c
Log:
Add a missing assert.

Spotted by: pprocacci  (Thanks!)

Fixes: #752



Modified: trunk/varnish-cache/lib/libvcl/vcc_compile.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_compile.c	2010-08-13 10:14:05 UTC (rev 5102)
+++ trunk/varnish-cache/lib/libvcl/vcc_compile.c	2010-08-13 10:19:40 UTC (rev 5103)
@@ -365,6 +365,7 @@
 	sp = calloc(sizeof *sp, 1);
 	assert(sp != NULL);
 	sp->name = strdup(name);
+	AN(sp->name);
 	sp->b = b;
 	sp->e = e;
 	return (sp);




More information about the varnish-commit mailing list