[master] ba51600 Add missing assert

Poul-Henning Kamp phk at varnish-cache.org
Wed Mar 9 13:48:34 CET 2011


commit ba516000f1dfd3c267f66de58319cc02467f3a08
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Mar 9 12:47:43 2011 +0000

    Add missing assert

diff --git a/lib/libvmod_std/vmod_std_fileread.c b/lib/libvmod_std/vmod_std_fileread.c
index a1d9798..8ab7b70 100644
--- a/lib/libvmod_std/vmod_std_fileread.c
+++ b/lib/libvmod_std/vmod_std_fileread.c
@@ -125,7 +125,7 @@ vmod_fileread(struct sess *sp, struct vmod_priv *priv, const char *file_name)
 	if ((fd = open(file_name, O_RDONLY)) == -1)
 		return "";
 
-	fstat(fd, &buf);
+	AZ(fstat(fd, &buf)i);
 
 	AZ(pthread_rwlock_wrlock(&filelist_lock));
 



More information about the varnish-commit mailing list