1
0
Fork 0
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:
Steffen Vogel 2020-08-17 17:07:20 +02:00
parent d7bfb4d896
commit e071c2475e

View file

@ -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);