diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index e73a84b627..fe6f4fe9a4 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -195,7 +195,7 @@ hash_crypt (const char *pw_in, Salt * salt) free (lsalt.salt); } - if( crypted_pw == NULL || crypted_pw[0] = '\0' ) + if( crypted_pw == NULL || crypted_pw[0] == '\0' ) return NULL; return STRDUP(crypted_pw);