summaryrefslogtreecommitdiffstats
path: root/src/fe-fuzz/null-logger.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:18:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:18:39 +0000
commitfff5217f02d91268ce90c8c05665602c059faaef (patch)
tree2ba24d32dc96eafe7ed0a85269548e76796d849d /src/fe-fuzz/null-logger.c
parentInitial commit. (diff)
downloadirssi-fff5217f02d91268ce90c8c05665602c059faaef.tar.xz
irssi-fff5217f02d91268ce90c8c05665602c059faaef.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.c16
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);
+}