From d8da7f55f7111174c49d716046d997f7b7f23f59 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 4 Nov 2009 00:29:35 +0100 Subject: main: move initialization of default config values closer together Michael --- src/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index e22b9e7..ef46d00 100644 --- a/src/main.c +++ b/src/main.c @@ -313,17 +313,16 @@ main (int argc, char **argv) config.config_file = SYSCONFDIR "/tinyproxy.conf"; config.godaemon = TRUE; - - process_cmdline (argc, argv); - - log_message (LOG_INFO, "Initializing " PACKAGE " ..."); - /* * Make sure the HTML error pages array is NULL to begin with. * (FIXME: Should have a better API for all this) */ config.errorpages = NULL; + process_cmdline (argc, argv); + + log_message (LOG_INFO, "Initializing " PACKAGE " ..."); + /* Read in the settings from the config file */ config_file = fopen (config.config_file, "r"); if (!config_file) { -- cgit v1.2.3