options: store a copy for prevReloadConfig
otherwise changes applied later to the object are propagated to the copy in prevReloadConfig.storeOptions. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
880f7a7b34
commit
63f6bba7bb
|
|
@ -288,7 +288,8 @@ func ReloadConfigurationFileIfNeeded(configFile string, storeOptions *StoreOptio
|
|||
return err
|
||||
}
|
||||
|
||||
prevReloadConfig.storeOptions = storeOptions
|
||||
cOptions := *storeOptions
|
||||
prevReloadConfig.storeOptions = &cOptions
|
||||
prevReloadConfig.mod = mtime
|
||||
prevReloadConfig.configFile = configFile
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue