aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz/fuzzshark.c
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/fuzzshark.c')
-rw-r--r--fuzz/fuzzshark.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fuzz/fuzzshark.c b/fuzz/fuzzshark.c
index 17dcb8315e..c2bed25c2d 100644
--- a/fuzz/fuzzshark.c
+++ b/fuzz/fuzzshark.c
@@ -25,6 +25,7 @@
#include <wsutil/filesystem.h>
#include <wsutil/privileges.h>
#include <wsutil/report_message.h>
+#include <wsutil/wslog.h>
#include <version_info.h>
#include <wiretap/wtap.h>
@@ -234,6 +235,9 @@ fuzz_init(int argc _U_, char **argv)
g_setenv("WIRESHARK_DEBUG_WMEM_OVERRIDE", "simple", 0);
g_setenv("G_SLICE", "always-malloc", 0);
+ /* Initialize log handler early so we can have proper logging during startup. */
+ ws_log_init("fuzzshark", NULL);
+
cmdarg_err_init(fuzzshark_cmdarg_err, fuzzshark_cmdarg_err_cont);
/*