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:
nekral-guest committed 2008-01-06 19:26:58 +00:00
1 parent e663f6c0b4
commit 85febc5729
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -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') {