From: Fabian Keil Date: Sat, 12 Aug 2017 09:35:32 +0000 (+0000) Subject: load_config(): Rearrange code to prevent a useless store X-Git-Tag: v_3_0_27~93 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=4e179d819e103967d36503691735dad6fe805e4c;ds=sidebyside load_config(): Rearrange code to prevent a useless store --- diff --git a/loadcfg.c b/loadcfg.c index cf6fa9e1..c8542ace 100644 --- a/loadcfg.c +++ b/loadcfg.c @@ -1,4 +1,4 @@ -const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.164 2017/06/26 12:11:13 fabiankeil Exp $"; +const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.165 2017/06/26 12:13:52 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/loadcfg.c,v $ @@ -1990,9 +1990,11 @@ struct configuration_spec * load_config(void) /* FIXME: end kludge */ - config->need_bind = 1; - - if (current_configfile) + if (current_configfile == NULL) + { + config->need_bind = 1; + } + else { struct configuration_spec * oldcfg = (struct configuration_spec *) current_configfile->f;