passwd: avoid NULL ptr usage
Fixes
common/password.c: In function 'check_passwd':
common/password.c:292:4: warning: reading through null pointer (argument 3)
    pr_err("No such digest: %s\n", PASSWD_SUM);

if no algo is enabled in which case PASSWD_SUM is defined to NULL.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 15c41be commit 342891feed84ac59ee1fc86b9d75a44c923f2f79
@Lucas Stach Lucas Stach authored on 9 Sep 2015
Sascha Hauer committed on 14 Sep 2015
Showing 1 changed file
View
common/password.c