aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/passwd/passwd.c
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-01-02 10:14:35 +0000
committerEd Schouten <ed@FreeBSD.org>2010-01-02 10:14:35 +0000
commit01cc221b4cb01158146875b6acbd412cbbef4a88 (patch)
treec2c2339d73799eb2c006fdef9e21fdd916ff5c96 /usr.bin/passwd/passwd.c
parentd93708c3e6940e90b6df87f7198e9fb893a07806 (diff)
downloadsrc-01cc221b4cb01158146875b6acbd412cbbef4a88.tar.gz
src-01cc221b4cb01158146875b6acbd412cbbef4a88.zip
Mute some warnings on uninitialized variables.
The code does the right thing, but the compiler is unable to figure it out. All paths that use that variable use the same invariant.
Notes
Notes: svn path=/head/; revision=201385
Diffstat (limited to 'usr.bin/passwd/passwd.c')
-rw-r--r--usr.bin/passwd/passwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/passwd/passwd.c b/usr.bin/passwd/passwd.c
index d35458c956a1..2d399c56291b 100644
--- a/usr.bin/passwd/passwd.c
+++ b/usr.bin/passwd/passwd.c
@@ -67,7 +67,7 @@ int
main(int argc, char *argv[])
{
char hostname[MAXHOSTNAMELEN];
- struct passwd *pwd;
+ struct passwd *pwd = NULL; /* Keep compiler happy. */
int o, pam_err;
uid_t uid;