diff options
author | Ed Schouten <ed@FreeBSD.org> | 2010-01-02 10:14:35 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2010-01-02 10:14:35 +0000 |
commit | 01cc221b4cb01158146875b6acbd412cbbef4a88 (patch) | |
tree | c2c2339d73799eb2c006fdef9e21fdd916ff5c96 /usr.bin/passwd/passwd.c | |
parent | d93708c3e6940e90b6df87f7198e9fb893a07806 (diff) | |
download | src-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.c | 2 |
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; |