Commit Diff


commit - 9ec8edf7c3ed58660d5ce984a55bbafbd9a23fb9
commit + ba5f8ecfda4faf3a01c519d51f2dab5a762c26a9
blob - aeb7899ca94b67c3cdb0073a8c958e4090cc27ea
blob + 232071082602c61b4e6c32805f8e173c9d8b7e1b
--- gotwebd/gotwebd.c
+++ gotwebd/gotwebd.c
@@ -276,15 +276,15 @@ main(int argc, char **argv)
 
 	if ((argv0 = argv[0]) == NULL)
 		argv0 = "gotwebd";
+
+	/* log to stderr until daemonized */
+	log_init(1, LOG_DAEMON);
 
 	env = calloc(1, sizeof(*env));
 	if (env == NULL)
 		fatal("%s: calloc", __func__);
 	config_init(env);
 
-	/* log to stderr until daemonized */
-	log_init(1, LOG_DAEMON);
-
 	while ((ch = getopt(argc, argv, "D:df:nSv")) != -1) {
 		switch (ch) {
 		case 'D':