w: initialize save_p to silence 'may be used uninitilized'

After r351379 save_p may be used uninitialized.  Set it to NULL before
first assignment so that a later NULL check will work correctly.

Reported by:		CI system for gcc platforms
MFC after:		1 week
X-MFC with:		351379 (karels)
This commit is contained in:
Bjoern A. Zeeb 2019-08-22 07:52:06 +00:00
parent aa9cb40e30
commit fada51254f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351385

View file

@ -209,6 +209,7 @@ main(int argc, char *argv[])
if (*argv)
sel_users = argv;
save_p = NULL;
setutxent();
for (nusers = 0; (utmp = getutxent()) != NULL;) {
struct addrinfo hints, *res;