Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jan 1997 02:42:11 +0100
From:      "Philippe Charnier" <charnier@xp11.frmug.org>
To:        hackers@FreeBSD.org
Subject:   unused variable in su
Message-ID:  <199701110142.CAA28453@xp11.frmug.org>

next in thread | raw e-mail | index | archive | help
Hello,

In /usr/src/usr.bin/su/su.c, I get:
line 101: char shellbuf[MAXPATHLEN];
line 171: shell = strcpy(shellbuf,  pwd->pw_shell);

Shellbuf is not referenced elsewhere, is there any reason not to
remove shellbuf (and adjust line 171), or is there a side effect I don't
see?

------                                                            ------ 
Philippe Charnier                               charnier@lirmm.fr (smtp)       
                                          charnier@xp11.frmug.org (uucp) 

    ``a PC not running FreeBSD is like a venusian with no tentacles'' 
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701110142.CAA28453>