[master] cd6f804 Remove a duplicate assert

Poul-Henning Kamp phk at varnish-cache.org
Fri Nov 25 12:51:13 CET 2011


commit cd6f804c1567fc9e40a87231135a361d5d092cc8
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Nov 25 11:50:46 2011 +0000

    Remove a duplicate assert
    
    Fixes	#1064

diff --git a/lib/libvcl/vcc_compile.c b/lib/libvcl/vcc_compile.c
index 5719cbf..fddd019 100644
--- a/lib/libvcl/vcc_compile.c
+++ b/lib/libvcl/vcc_compile.c
@@ -444,13 +444,13 @@ vcc_resolve_includes(struct vcc *tl)
 		}
 		t2 = VTAILQ_NEXT(t1, list);
 		assert(t2 != NULL);	/* There's always an EOI */
+
 		if (t2->tok != ';') {
 			VSB_printf(tl->sb,
 			    "include <string> not followed by semicolon.\n");
 			vcc_ErrWhere(tl, t1);
 			return;
 		}
-		assert(t2 != NULL);
 
 		sp = vcc_file_source(tl, tl->sb, t1->dec);
 		if (sp == NULL) {



More information about the varnish-commit mailing list