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:
Joshua Sled 2007-02-10 20:05:56 +00:00
parent f6b6771410
commit 5cc69350f4

View File

@ -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)