From 01cc221b4cb01158146875b6acbd412cbbef4a88 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sat, 2 Jan 2010 10:14:35 +0000 Subject: 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. --- usr.bin/passwd/passwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/passwd/passwd.c') 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; -- cgit v1.2.3