mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Better handling of NULL filename.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15556 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
f6b6771410
commit
5cc69350f4
@ -131,12 +131,7 @@ qof_log_init_filename(const gchar* log_filename)
|
||||
if (log_table == NULL)
|
||||
log_table = g_hash_table_new(g_str_hash, g_str_equal);
|
||||
|
||||
// don't prevent multiple qof_log_init() calls to screw this up.
|
||||
if (!log_filename && fout == NULL)
|
||||
{
|
||||
fout = stderr;
|
||||
}
|
||||
else
|
||||
if (log_filename)
|
||||
{
|
||||
int fd;
|
||||
gchar *fname;
|
||||
@ -172,7 +167,7 @@ qof_log_shutdown (void)
|
||||
if (fout && fout != stderr && fout != stdout)
|
||||
{
|
||||
fclose(fout);
|
||||
fout == NULL;
|
||||
fout = NULL;
|
||||
}
|
||||
|
||||
if (function_buffer)
|
||||
|
Loading…
Reference in New Issue
Block a user