modules/lokker: Array address is never NULL.

This would always be true. Comparing against the first array item is fine.

CID: 1155284
This commit is contained in:
Stefan Schmidt 2014-09-19 10:25:54 +02:00
parent 90daba7645
commit 3a1cc22f83
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ _lokker_check_auth(void)
}
else if (e_desklock_is_personal())
{
if ((e_config->desklock_passwd) && (edd->passwd && edd->passwd[0]) &&
if ((e_config->desklock_passwd) && edd->passwd[0] &&
(e_config->desklock_passwd == e_auth_hash_djb2(edd->passwd, strlen(edd->passwd))))
{
/* password ok */