mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
silence glib log output during fuzzing on oss-fuzz
This commit is contained in:
parent
96562e460b
commit
9ff224d05d
12 changed files with 48 additions and 0 deletions
16
src/fe-fuzz/null-logger.c
Normal file
16
src/fe-fuzz/null-logger.c
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue