[master] 4502870 Silence compiler warning about possibly uninitialized variables.
Martin Blix Grydeland
martin at varnish-cache.org
Wed Oct 16 16:51:50 CEST 2013
commit 4502870118f6583139bb059f9208bcc2338f9c08
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Wed Oct 16 15:02:17 2013 +0200
Silence compiler warning about possibly uninitialized variables.
diff --git a/lib/libvarnishapi/vsl_query.c b/lib/libvarnishapi/vsl_query.c
index ba8b173..5cddbde 100644
--- a/lib/libvarnishapi/vsl_query.c
+++ b/lib/libvarnishapi/vsl_query.c
@@ -72,8 +72,8 @@ static int
vslq_test_rec(const struct vex *vex, const struct VSLC_ptr *rec)
{
const struct vex_rhs *rhs;
- long long lhs_int;
- double lhs_float;
+ long long lhs_int = 0;
+ double lhs_float = 0.;
const char *b, *e;
char *p;
int i;
More information about the varnish-commit
mailing list