From e7ee56dd1d6dd40cd330233d19783974d1aff57d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 22 Jul 2016 15:10:36 -0400 Subject: [PATCH] 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 file changed, 1 deletion(-) diff --git a/glib/gmessages.c b/glib/gmessages.c index c696dded9..fc2157445 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;