[Pkg-shadow-commits] r1678 - in upstream/trunk: . src
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sun Jan 6 19:26:58 UTC 2008
Author: nekral-guest
Date: 2008-01-06 19:26:58 +0000 (Sun, 06 Jan 2008)
New Revision: 1678
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/passwd.c
Log:
Avoid setting the password to a const empty string, but set the first char to \0. This avoids a warning.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-01-06 14:50:26 UTC (rev 1677)
+++ upstream/trunk/ChangeLog 2008-01-06 19:26:58 UTC (rev 1678)
@@ -1,5 +1,10 @@
2008-01-06 Nicolas François <nicolas.francois at centraliens.net>
+ * src/passwd.c: Avoid setting the password to a const empty
+ string, but set the first char to \0. This avoids a warning.
+
+2008-01-06 Nicolas François <nicolas.francois at centraliens.net>
+
* libmisc/salt.c: Add prototype for l64a(), gensalt(),
SHA_salt_size(), and SHA_salt_rounds().
* libmisc/salt.c: l64a() and gensalt() are static.
Modified: upstream/trunk/src/passwd.c
===================================================================
--- upstream/trunk/src/passwd.c 2008-01-06 14:50:26 UTC (rev 1677)
+++ upstream/trunk/src/passwd.c 2008-01-06 19:26:58 UTC (rev 1678)
@@ -468,7 +468,7 @@
#endif
if (dflg)
- cp = ""; /* XXX warning: const */
+ *cp = '\0';
if (uflg && *cp == '!') {
if (cp[1] == '\0') {
More information about the Pkg-shadow-commits
mailing list