aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/ldap
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-05-08 17:42:54 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-05-08 17:42:54 +0000
commit7e0c1e3a5a33ec54b6424d48a6169cb4903bc774 (patch)
tree8c79f6b86aa7dd4beb38b7fe546dfa2345da9335 /asn1/ldap
parent3c47f9e73bb3e052ea89c52f8e12f756a8cea027 (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=42514
Diffstat (limited to 'asn1/ldap')
-rw-r--r--asn1/ldap/ldap.cnf4
1 files changed, 1 insertions, 3 deletions
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;
}