From 7e0c1e3a5a33ec54b6424d48a6169cb4903bc774 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 8 May 2012 17:42:54 +0000 Subject: Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang svn path=/trunk/; revision=42514 --- asn1/ldap/ldap.cnf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'asn1/ldap') diff --git a/asn1/ldap/ldap.cnf b/asn1/ldap/ldap.cnf index 77576d12d5..bd110ffe17 100644 --- a/asn1/ldap/ldap.cnf +++ b/asn1/ldap/ldap.cnf @@ -202,9 +202,7 @@ char *mechanism = NULL; * Otherwise, if the saved mechanism is an empty string (null), * save this mechanism. */ - if (mechanism == NULL) { - mechanism = ldap_info->auth_mech; - } else { + if (mechanism != NULL) { g_free(ldap_info->auth_mech); ldap_info->auth_mech = mechanism; } -- cgit v1.2.3