[base] Don't close 'stderr' after logging.

* src/base/ftdebug.c, builds/windows/ftdebug.c (ft_logging_deinit):
Fix it.
This commit is contained in:
Werner Lemberg 2020-12-02 08:32:37 +01:00
parent c764686bc9
commit 74822f64b0
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2020-12-02 Werner Lemberg <wl@gnu.org>
[base] Don't close 'stderr' after logging.
* src/base/ftdebug.c, builds/windows/ftdebug.c (ft_logging_deinit):
Fix it.
2020-12-02 Werner Lemberg <wl@gnu.org>
* submodules/dlg: Updated to commit 9f0c8b22.

View File

@ -452,7 +452,8 @@
FT_BASE_DEF( void )
ft_logging_deinit( void )
{
ft_fclose( ft_fileptr );
if ( ft_fileptr != stderr )
ft_fclose( ft_fileptr );
}

View File

@ -439,7 +439,8 @@
FT_BASE_DEF( void )
ft_logging_deinit( void )
{
ft_fclose( ft_fileptr );
if ( ft_fileptr != stderr )
ft_fclose( ft_fileptr );
}