Avoid setting the password to a const empty string, but set the first char to \0. This avoids a warning.
This commit is contained in:
@@ -468,7 +468,7 @@ static char *update_crypt_pw (char *cp)
|
||||
#endif
|
||||
|
||||
if (dflg)
|
||||
cp = ""; /* XXX warning: const */
|
||||
*cp = '\0';
|
||||
|
||||
if (uflg && *cp == '!') {
|
||||
if (cp[1] == '\0') {
|
||||
|
||||
Reference in New Issue
Block a user