diff options
Diffstat (limited to 'src/fe-fuzz/null-logger.c')
-rw-r--r-- | src/fe-fuzz/null-logger.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/fe-fuzz/null-logger.c b/src/fe-fuzz/null-logger.c new file mode 100644 index 0000000..dd88b84 --- /dev/null +++ b/src/fe-fuzz/null-logger.c @@ -0,0 +1,16 @@ +#include <irssi/src/fe-fuzz/null-logger.h> + +#include <glib.h> + +static void null_logger(const gchar *log_domain, + GLogLevelFlags log_level, + const gchar *message, + gpointer user_data) +{ + return; +} + +void g_log_set_null_logger(void) +{ + g_log_set_default_handler(null_logger, NULL); +} |