[glib] Make g_log_set_writer_func work more than once



commit e7ee56dd1d6dd40cd330233d19783974d1aff57d
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 22 15:10:36 2016 -0400

    Make g_log_set_writer_func work more than once
    
    It is fine to document that you shall only call this once,
    but for tests, it is important that we can call it multiple
    times.

 glib/gmessages.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/glib/gmessages.c b/glib/gmessages.c
index c696dde..fc21574 100644
--- a/glib/gmessages.c
+++ b/glib/gmessages.c
@@ -1582,7 +1582,6 @@ g_log_set_writer_func (GLogWriterFunc func,
                        GDestroyNotify user_data_free)
 {
   g_return_if_fail (func != NULL);
-  g_return_if_fail (log_writer_func == g_log_writer_default);
 
   g_mutex_lock (&g_messages_lock);
   log_writer_func = func;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]