You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
417 B

  1. Added a missing initialisation that under special circumstanses causes seg fault.
  2. --- a/service/SettingsConfuse.cpp
  3. +++ b/service/SettingsConfuse.cpp
  4. @@ -435,6 +435,7 @@ bool readVarConfig(cfg_t **cfg) {
  5. FILE *fp = fopen(VAR_CONFIG_FILE, "re"); // e for setting O_CLOEXEC on the file handle
  6. if (!fp) {
  7. + (*cfg) = 0;
  8. Log::warning("Unable to open var config file, %s", VAR_CONFIG_FILE);
  9. return false;
  10. }