diff --git a/clients/tools/ldapwhoami.c b/clients/tools/ldapwhoami.c index 12be137f4b..e6c2a237eb 100644 --- a/clients/tools/ldapwhoami.c +++ b/clients/tools/ldapwhoami.c @@ -113,7 +113,7 @@ main( int argc, char *argv[] ) char *matcheddn = NULL, *text = NULL, **refs = NULL; struct berval *authzid = NULL; int id, code = 0; - LDAPMessage *res; + LDAPMessage *res = NULL; LDAPControl **ctrls = NULL; tool_init( TOOL_WHOAMI );