mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
remove usage of uninitialized value
This commit is contained in:
parent
d7bfb4d896
commit
e071c2475e
1 changed files with 2 additions and 5 deletions
|
@ -253,12 +253,9 @@ json_t * Config::resolveIncludes(json_t *in)
|
|||
else {
|
||||
std::string path = text.substr(kw.size());
|
||||
|
||||
json_error_t err;
|
||||
json_t *incl;
|
||||
|
||||
incl = load(path);
|
||||
json_t *incl = load(path);
|
||||
if (!incl)
|
||||
throw ConfigError(str, err, "Failed to include config file from {}", path);
|
||||
throw ConfigError(str, "Failed to include config file from {}", path);
|
||||
|
||||
logger->debug("Included config from: {}", path);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue