Remove redundant uses of environ

environ doesn’t work on OS X.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2012-02-28 05:51:29 -05:00
committed by Keith Winstein
parent 19d284bfa4
commit b275571b8f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ int main( void )
assert( my_argv[ 0 ] );
my_argv[ 1 ] = NULL;
if ( execve( pw->pw_shell, my_argv, environ ) < 0 ) {
if ( execv( pw->pw_shell, my_argv ) < 0 ) {
perror( "execve" );
exit( 1 );
}