projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
771605c
)
load_config(): Rearrange code to prevent a useless store
author
Fabian Keil
<fk@fabiankeil.de>
Sat, 12 Aug 2017 09:35:32 +0000
(09:35 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sat, 12 Aug 2017 09:35:32 +0000
(09:35 +0000)
loadcfg.c
patch
|
blob
|
history
diff --git
a/loadcfg.c
b/loadcfg.c
index
cf6fa9e
..
c8542ac
100644
(file)
--- a/
loadcfg.c
+++ b/
loadcfg.c
@@
-1,4
+1,4
@@
-const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.16
4 2017/06/26 12:11:13
fabiankeil Exp $";
+const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.16
5 2017/06/26 12:13:52
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/loadcfg.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/loadcfg.c,v $
@@
-1990,9
+1990,11
@@
struct configuration_spec * load_config(void)
/* FIXME: end kludge */
/* 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;
{
struct configuration_spec * oldcfg = (struct configuration_spec *)
current_configfile->f;