aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-06-24 21:20:25 +0100
committerJoão Valverde <j@v6e.pt>2021-06-26 00:18:26 +0100
commitc6a920686ce59ea8b29f7a61f8197077baedf304 (patch)
treeda6268c7e6fce9e38f99190f08fe3c08b5301b38 /tshark.c
parentc2c256f0d8afa76599d7c3f3dcfac23c02069209 (diff)
wslog: Check environment initialization for errors
Initialiaze the cmdarg error stream earlier. Dumpcap also needs to know earlier if it is running in capture child mode.
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tshark.c b/tshark.c
index 74efc61730..87547f2fea 100644
--- a/tshark.c
+++ b/tshark.c
@@ -775,11 +775,11 @@ main(int argc, char *argv[])
setlocale(LC_ALL, "");
#endif
- /* Initialize log handler early so we can have proper logging during startup. */
- ws_log_init("tshark", NULL);
-
cmdarg_err_init(tshark_cmdarg_err, tshark_cmdarg_err_cont);
+ /* Initialize log handler early so we can have proper logging during startup. */
+ ws_log_init("tshark", vcmdarg_err);
+
/* Early logging command-line initialization. */
ws_log_parse_args(&argc, argv, vcmdarg_err, INVALID_OPTION);