* syscalls.cc (endusershell): Reset shell_fp to NULL to allow

subsequent getusershell calls.
This commit is contained in:
Corinna Vinschen 2005-08-24 15:50:11 +00:00
parent 7871cd8c5d
commit 986c841b21
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-08-24 Corinna Vinschen <corinna@vinschen.de>
* syscalls.cc (endusershell): Reset shell_fp to NULL to allow
subsequent getusershell calls.
2005-08-24 Christopher Faylor <cgf@timesys.com>
* path.cc (path_conv::check): Fill in fileattr for /dev, defaulting to

View file

@ -3052,7 +3052,10 @@ extern "C" void
endusershell ()
{
if (shell_fp)
fclose (shell_fp);
{
fclose (shell_fp);
shell_fp = NULL;
}
shell_index = 0;
}