From: Arran Cudbard-Bell Date: Tue, 9 Sep 2014 19:18:30 +0000 (-0400) Subject: Quiet valgrind error in rlm_ldap X-Git-Tag: release_3_0_5~581 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dea355d07c28c4b1bbcfdbb899c99200ba7060d2;p=thirdparty%2Ffreeradius-server.git Quiet valgrind error in rlm_ldap --- diff --git a/src/modules/rlm_ldap/rlm_ldap.c b/src/modules/rlm_ldap/rlm_ldap.c index b401fd7dfeb..63c1cfd9855 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -559,8 +559,8 @@ static int mod_instantiate(CONF_SECTION *conf, void *instance) * Get version info from the LDAP API. */ if (!version_done) { + static LDAPAPIInfo info; /* static to quiet valgrind about this being uninitialised */ int ldap_errno; - LDAPAPIInfo info; version_done = true;