diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:18:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:18:39 +0000 |
commit | fff5217f02d91268ce90c8c05665602c059faaef (patch) | |
tree | 2ba24d32dc96eafe7ed0a85269548e76796d849d /src/fe-fuzz/null-logger.c | |
parent | Initial commit. (diff) | |
download | irssi-upstream.tar.xz irssi-upstream.zip |
Adding upstream version 1.4.5.upstream/1.4.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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); +} |