* mu-log: don't complain when unit is called when not already initialized

This commit is contained in:
Dirk-Jan C. Binnema 2010-11-20 16:14:26 +02:00
parent d1494028e7
commit 208322527b
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,8 @@ mu_log_init (const char* muhome,
void
mu_log_uninit (void)
{
g_return_if_fail (MU_LOG);
if (!MU_LOG)
return;
if (MU_LOG->_own)
try_close (MU_LOG->_fd);