diff options
author | Michael Adam <obnox@samba.org> | 2009-11-04 00:29:35 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-11-14 12:13:10 +0100 |
commit | d8da7f55f7111174c49d716046d997f7b7f23f59 (patch) | |
tree | 066ae24f5a09c36cee8c8c145854cd1029f6472c /src/main.c | |
parent | 9274b5556ee3c546176936580c9bb5403b2c09e6 (diff) |
main: move initialization of default config values closer together
Michael
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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) { |