load_config(): Rearrange code to prevent a useless store
authorFabian Keil <fk@fabiankeil.de>
Sat, 12 Aug 2017 09:35:32 +0000 (09:35 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sat, 12 Aug 2017 09:35:32 +0000 (09:35 +0000)
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.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 $
 /*********************************************************************
  *
  * 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;