silence glib log output during fuzzing on oss-fuzz

This commit is contained in:
ailin-nemui 2019-09-10 13:08:35 +02:00
commit 9ff224d05d
12 changed files with 48 additions and 0 deletions

16
src/fe-fuzz/null-logger.c Normal file
View file

@ -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);
}