[master] db36b58 This cast is a tad too creative for my taste, make it safer.
Poul-Henning Kamp
phk at varnish-cache.org
Tue Sep 20 15:56:19 CEST 2011
commit db36b58c3237c0a63912781595516e3cf9ad36f8
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Sep 20 13:55:51 2011 +0000
This cast is a tad too creative for my taste, make it safer.
diff --git a/bin/varnishd/cache_vrt_re.c b/bin/varnishd/cache_vrt_re.c
index 9c6cb99..8e1218a 100644
--- a/bin/varnishd/cache_vrt_re.c
+++ b/bin/varnishd/cache_vrt_re.c
@@ -59,8 +59,11 @@ VRT_re_init(void **rep, const char *re)
void
VRT_re_fini(void *rep)
{
+ vre_t *vv;
+
+ vv = rep;
if (rep != NULL)
- VRE_free((vre_t**)&rep);
+ VRE_free(&vv);
}
int
More information about the varnish-commit
mailing list