mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
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.
This commit is contained in:
parent
97a38dc586
commit
e7ee56dd1d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user