stefan pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=3a1cc22f83ac223e832c7cea008139a7b9a3055e

commit 3a1cc22f83ac223e832c7cea008139a7b9a3055e
Author: Stefan Schmidt <[email protected]>
Date:   Fri Sep 19 10:25:54 2014 +0200

    modules/lokker: Array address is never NULL.
    
    This would always be true. Comparing against the first array item is fine.
    
    CID: 1155284
---
 src/modules/lokker/lokker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/lokker/lokker.c b/src/modules/lokker/lokker.c
index c09c59b..2d32296 100644
--- a/src/modules/lokker/lokker.c
+++ b/src/modules/lokker/lokker.c
@@ -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 */

-- 


Reply via email to