commit f628b72747a958c7fa3bffd3b57121787548025d
Author: sin <[email protected]>
Date:   Thu Jun 5 17:12:21 2014 +0100

    Allow the user to change from an empty password
    
    Default to SHA-512.

diff --git a/passwd.c b/passwd.c
index 52e583b..8427e12 100644
--- a/passwd.c
+++ b/passwd.c
@@ -21,7 +21,8 @@ usage(void)
 int
 main(int argc, char *argv[])
 {
-       char *pass, *cryptpass1, *cryptpass2, *cryptpass3;
+       char *pass;
+       char *cryptpass1 = NULL, *cryptpass2 = NULL, *cryptpass3 = NULL;
        char *p;
        char template[] = "/tmp/pw.XXXXXX";
        struct passwd *pw;
@@ -49,8 +50,11 @@ main(int argc, char *argv[])
                eprintf("denied
");
        }
 
-       if (pw->pw_passwd[0] == '

Reply via email to