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

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