[master] 5722377 Use (char*)0 because because GCC thinks NULL is something else ?

Poul-Henning Kamp phk at FreeBSD.org
Tue Mar 27 20:11:07 UTC 2018


commit 57223773d9237f3e44c3034bb2cac8c5c6a2b712
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Mar 27 20:09:44 2018 +0000

    Use (char*)0 because because GCC thinks NULL is something else ?

diff --git a/bin/varnishtest/vtc_haproxy.c b/bin/varnishtest/vtc_haproxy.c
index 17c62fb..4f9ab5a 100644
--- a/bin/varnishtest/vtc_haproxy.c
+++ b/bin/varnishtest/vtc_haproxy.c
@@ -318,7 +318,7 @@ haproxy_start(struct haproxy *h)
 		closefd(&h->fds[1]);
 		closefd(&h->fds[2]);
 		closefd(&h->fds[3]);
-		AZ(execl("/bin/sh", "/bin/sh", "-c", VSB_data(vsb), NULL));
+		AZ(execl("/bin/sh", "/bin/sh", "-c", VSB_data(vsb), (char*)0));
 		exit(1);
 	}
 	VSB_destroy(&vsb);


More information about the varnish-commit mailing list