aboutsummaryrefslogtreecommitdiffstats
path: root/captype.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 /captype.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 'captype.c')
-rw-r--r--captype.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/captype.c b/captype.c
index 96edb84443..558aa9465b 100644
--- a/captype.c
+++ b/captype.c
@@ -120,11 +120,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("captype", NULL);
-
cmdarg_err_init(captype_cmdarg_err, captype_cmdarg_err_cont);
+ /* Initialize log handler early so we can have proper logging during startup. */
+ ws_log_init("captype", vcmdarg_err);
+
/* Early logging command-line initialization. */
ws_log_parse_args(&argc, argv, vcmdarg_err, 1);